Viewing 15 posts - 23,971 through 23,985 (of 26,486 total)
Given A date return the number of Sundays? Doesn't make sense.
October 30, 2008 at 3:31 pm
Use isnull around each column: isnull(columnname,'')
October 30, 2008 at 2:14 pm
I am curious as to what your error is. While looking at the code in your original post, I also noticed a "go" where you probably don't want one....
October 30, 2008 at 2:04 pm
No, you can't define PK/FK relationships between tables in different databases.
October 30, 2008 at 1:53 pm
Now for a dumb question, why are you using dynamic sql in this to strip the time.
/*
declare @sql as varchar(255)
declare @table_var table (data datetime)
set @sql='select ''' +...
October 30, 2008 at 1:09 pm
Jack beat me to it, but you can also learn more about the patindex function in BOL (Books On-Line).
October 30, 2008 at 12:53 pm
Sorry for taking a lot of space, but check out the following:
--We need to build a new ptEncounterEncounterDetail from the EncounterID,
--EncounterDetailID combinations where the Migration values are in the
--old ptEncounterEncounterDetail....
October 30, 2008 at 10:32 am
Also, I assume that ptEncounterEncounterDetailTemp has the same structure as ptEncounterEncounterDetail?
October 30, 2008 at 10:16 am
Just one thing missing, what should the expected results be based on the test data. Need something to check against.
October 30, 2008 at 10:10 am
new coder (10/30/2008)
1-Cell number
2-Home number
3-Work number
For...
October 30, 2008 at 10:04 am
Is the new filegroup on the same disk as it was before, or did you move it to its own drive? I'd probably move the nonclustered indexes to the...
October 30, 2008 at 9:37 am
Did a little "googling" and found that Unix records date as the number of seconds since 1970-01-01 00:00:00 UTC (GMT). With that, 1220140800 is Saturday, 2008-08-31 00:00:00 UTC.
October 30, 2008 at 9:26 am
Is 1220140801 October 1, 2008?
October 30, 2008 at 9:13 am
richard (10/30/2008)
1. created new table:
CREATE TABLE TEST
REF INT NOT NULL,
DATE DATETIME NOT NULL
2. Inserted 4 rows - made sure that the REF was sequential...
October 30, 2008 at 8:36 am
eric (10/30/2008)
I need to create a Stored Procedure which will receive the name of a table as parameter and perform numerous operations (probably using a 'Curse her' :crazy:) on...
October 30, 2008 at 8:08 am
Viewing 15 posts - 23,971 through 23,985 (of 26,486 total)