Click here to Skip to main content
15,888,320 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to update sequence in MySQL Pin
CHill608-Dec-15 4:40
mveCHill608-Dec-15 4:40 
QuestionGiving access permissions to user webadminqa_iispool Pin
indian1434-Dec-15 12:23
indian1434-Dec-15 12:23 
AnswerRe: Giving access permissions to user webadminqa_iispool Pin
Mycroft Holmes4-Dec-15 13:03
professionalMycroft Holmes4-Dec-15 13:03 
AnswerRe: Giving access permissions to user webadminqa_iispool Pin
Richard Deeming7-Dec-15 1:34
mveRichard Deeming7-Dec-15 1:34 
QuestionHow to manage 1000 millions of record in Mysql database Pin
Member 120698693-Dec-15 20:28
Member 120698693-Dec-15 20:28 
AnswerRe: How to manage 1000 millions of record in Mysql database Pin
Richard MacCutchan3-Dec-15 22:44
mveRichard MacCutchan3-Dec-15 22:44 
AnswerRe: How to manage 1000 millions of record in Mysql database Pin
jschell4-Dec-15 12:39
jschell4-Dec-15 12:39 
QuestionSQL Linq, IQueryable, ToList, just get 1 result Pin
jkirkerx3-Dec-15 11:43
professionaljkirkerx3-Dec-15 11:43 
Well, this started as a basic request for all records, then I ran into a size limit with the web service, to I added pagination to the call. Next I could not project directly into a list(of, so I took the statement out
subscribers.ToList().Select(Function(cs) New ws_subscribers_list With
Now I just get 1 record returned. I don't have experience with IQueryable so I'm not sure how to proceed on this.
Public Shared Function load_subscribers( _
        ByVal pPageIndex As Integer,
        ByVal pPageSize As Integer,
        ByRef pResults As List(Of ws_subscribers_list)) As Integer

        Dim pValue As Integer = 0
        Dim context As New hx5Context()

        Dim subscribers As IQueryable(Of CRM_SUBSCRIBERS) = context.crm_Subscribers

        'Set the Sort Order of the request
        subscribers = subscribers.OrderBy(Function(m) m.Name)

        'Get a Single Page of Data
        If (pPageIndex = 1) Then
            subscribers = subscribers.Take(pPageSize)
        Else
            subscribers = subscribers.Skip((pPageIndex - 1) * pPageSize).Take(pPageSize)
        End If

        pResults = _
            subscribers.Select(Function(cs) New ws_subscribers_list With
            {
                .SubscriberID = cs.SubscriberID,
                .CustomerID = cs.CustomerID,
                .Name = cs.Name,
                .EmailAddress = cs.EmailAddress,
                .Source = cs.Source,
                .Subscribe = cs.Subscribe,
                .DateCreated = cs.DateCreated,
                .Status = cs.Status
            }
        ).ToList()

        pValue = pResults.Count()

        Return pValue

    End Function

AnswerRe: SQL Linq, IQueryable, ToList, just get 1 result Pin
Richard Deeming4-Dec-15 1:17
mveRichard Deeming4-Dec-15 1:17 
GeneralRe: SQL Linq, IQueryable, ToList, just get 1 result Pin
jkirkerx4-Dec-15 7:04
professionaljkirkerx4-Dec-15 7:04 
QuestionReport View Error Pin
Member 121385253-Dec-15 1:55
Member 121385253-Dec-15 1:55 
QuestionRe: Report View Error Pin
Richard MacCutchan3-Dec-15 2:10
mveRichard MacCutchan3-Dec-15 2:10 
Questionhandle transaction without deadlock Pin
Member 106619971-Dec-15 5:03
Member 106619971-Dec-15 5:03 
AnswerRe: handle transaction without deadlock Pin
Afzaal Ahmad Zeeshan1-Dec-15 5:20
professionalAfzaal Ahmad Zeeshan1-Dec-15 5:20 
GeneralRe: handle transaction without deadlock Pin
Richard Deeming1-Dec-15 5:37
mveRichard Deeming1-Dec-15 5:37 
QuestionHELP ME ADD EXCEPTION Pin
VicPat25-Nov-15 2:14
VicPat25-Nov-15 2:14 
AnswerRe: HELP ME ADD EXCEPTION Pin
Mycroft Holmes25-Nov-15 12:04
professionalMycroft Holmes25-Nov-15 12:04 
QuestionRemove Unique constraint from an Non-Clustered Index Pin
indian14324-Nov-15 6:26
indian14324-Nov-15 6:26 
QuestionStudent Grade and Grade Point Callculation Pin
Aliyu Usman21-Nov-15 11:50
Aliyu Usman21-Nov-15 11:50 
AnswerRe: Student Grade and Grade Point Callculation Pin
Mycroft Holmes21-Nov-15 13:41
professionalMycroft Holmes21-Nov-15 13:41 
GeneralRe: Student Grade and Grade Point Callculation Pin
Aliyu Usman21-Nov-15 19:07
Aliyu Usman21-Nov-15 19:07 
GeneralRe: Student Grade and Grade Point Callculation Pin
Mycroft Holmes21-Nov-15 20:47
professionalMycroft Holmes21-Nov-15 20:47 
AnswerRe: Student Grade and Grade Point Callculation Pin
GuyThiebaut24-Nov-15 2:08
professionalGuyThiebaut24-Nov-15 2:08 
Questionnewtonsoft.json parser - how to deploy a CLR to SQL Server 2008 R2? Pin
Member 822518018-Nov-15 11:55
Member 822518018-Nov-15 11:55 
QuestionRemoval and delete of duplicate records in my table Pin
goldsoft15-Nov-15 2:37
goldsoft15-Nov-15 2:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.