Click here to Skip to main content
15,913,361 members
Home / Discussions / Database
   

Database

 
AnswerRe: Using SQLite in C++ and C# Pin
PIEBALDconsult7-Aug-15 14:04
mvePIEBALDconsult7-Aug-15 14:04 
QuestionSQL Transacation questions Pin
Tunisiano326-Aug-15 1:57
Tunisiano326-Aug-15 1:57 
AnswerRe: SQL Transacation questions Pin
Eddy Vluggen16-Aug-15 1:17
professionalEddy Vluggen16-Aug-15 1:17 
GeneralRe: SQL Transacation questions Pin
chairborne8217-Aug-15 17:12
chairborne8217-Aug-15 17:12 
QuestionSQL Linq, Row Number() Over, equiv in VB Pin
jkirkerx4-Aug-15 14:03
professionaljkirkerx4-Aug-15 14:03 
AnswerRe: SQL Linq, Row Number() Over, equiv in VB Pin
Richard Deeming5-Aug-15 1:41
mveRichard Deeming5-Aug-15 1:41 
GeneralRe: SQL Linq, Row Number() Over, equiv in VB Pin
jkirkerx5-Aug-15 6:09
professionaljkirkerx5-Aug-15 6:09 
GeneralRe: SQL Linq, Row Number() Over, equiv in VB Pin
jkirkerx5-Aug-15 7:58
professionaljkirkerx5-Aug-15 7:58 
GeneralRe: SQL Linq, Row Number() Over, equiv in VB Pin
Richard Deeming5-Aug-15 8:12
mveRichard Deeming5-Aug-15 8:12 
GeneralRe: SQL Linq, Row Number() Over, equiv in VB Pin
Richard Deeming5-Aug-15 8:18
mveRichard Deeming5-Aug-15 8:18 
GeneralRe: SQL Linq, Row Number() Over, equiv in VB Pin
jkirkerx5-Aug-15 10:39
professionaljkirkerx5-Aug-15 10:39 
QuestionIs this possible, using an old foxpro database files and oledb for DBase Pin
jkirkerx30-Jul-15 13:18
professionaljkirkerx30-Jul-15 13:18 
AnswerRe: Is this possible, using an old foxpro database files and oledb for DBase Pin
Mycroft Holmes30-Jul-15 14:13
professionalMycroft Holmes30-Jul-15 14:13 
GeneralRe: Is this possible, using an old foxpro database files and oledb for DBase Pin
jkirkerx31-Jul-15 6:25
professionaljkirkerx31-Jul-15 6:25 
Questionrestore database Pin
millerwilliam3529-Jul-15 2:51
millerwilliam3529-Jul-15 2:51 
AnswerRe: restore database Pin
CHill6029-Jul-15 3:56
mveCHill6029-Jul-15 3:56 
QuestionRe: restore database Pin
Eddy Vluggen29-Jul-15 5:31
professionalEddy Vluggen29-Jul-15 5:31 
AnswerRe: restore database Pin
Mycroft Holmes29-Jul-15 14:30
professionalMycroft Holmes29-Jul-15 14:30 
AnswerRe: restore database Pin
Nitzan Levi22-Aug-15 20:20
Nitzan Levi22-Aug-15 20:20 
QuestionUpdate SQL Server Table with a Spreadsheet Worksheet DataTable using CommandBuilder Pin
LHendren27-Jul-15 1:37
LHendren27-Jul-15 1:37 
AnswerRe: Update SQL Server Table with a Spreadsheet Worksheet DataTable using CommandBuilder Pin
Mycroft Holmes27-Jul-15 14:33
professionalMycroft Holmes27-Jul-15 14:33 
QuestionSQL Linq, Joins, returns 1st record over and over Pin
jkirkerx23-Jul-15 9:11
professionaljkirkerx23-Jul-15 9:11 
So I wrote this expression, when I use the joins, I get the first record in the amount of row count. But when I remove the joins, I get all the records.

could this be an error in my Database, in which I have to change the ID column names to make a match, or am I just missing something in my expression?

So this works
pResults = _
                (
                    From ca In context.Customer_Accounts
                    Where ca.DateOpened >= DbFunctions.AddDays(Today, -1)
                    Order By ca.DateOpened Descending
                    Select New accountIndex With
                    {
                        .ID = ca.ID,
                        .firstName = ca.FirstName,
                        .lastName = ca.LastName,
                        .accountName = ca.AccountName,
                        .secure_EmailAdddress = ca.EmailAddress,
                        .dateOpened = ca.DateOpened
                    }
                ).AsEnumerable()
This return the first row multiple times
pResults = _
                (
                    From ca In context.Customer_Accounts
                    Join ba In context.CUstomer_BillingAddress On ba.CustomerID Equals ca.ID
                    Join sa In context.Customer_ShippingAddress On sa.CustomerID Equals ca.ID
                    Where ca.DateOpened >= DbFunctions.AddDays(Today, -7)
                    Order By ca.DateOpened Descending
                    Select New accountIndex With
                    {
                        .ID = ca.ID,
                        .firstName = ca.FirstName,
                        .lastName = ca.LastName,
                        .accountName = ca.AccountName,
                        .secure_EmailAdddress = ca.EmailAddress,
                        .dateOpened = ca.DateOpened,
                        .billing_FirstName = If(ba.Name1 Is Nothing, Nothing, ba.Name1),
                        .billing_LastName = If(ba.Name2 Is Nothing, Nothing, ba.Name2),
                        .shipping_FirstName = If(sa.Name1 Is Nothing, Nothing, sa.Name1),
                        .shipping_LastName = If(sa.Name2 Is Nothing, Nothing, sa.Name2)
                    }
                ).AsEnumerable()

Answer[Solved] Pin
jkirkerx23-Jul-15 11:30
professionaljkirkerx23-Jul-15 11:30 
QuestionEntity Framework Book. Pin
Kevin Marois23-Jul-15 5:29
professionalKevin Marois23-Jul-15 5:29 
QuestionRe: Entity Framework Book. Pin
Richard MacCutchan23-Jul-15 6:36
mveRichard MacCutchan23-Jul-15 6:36 

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.