Viewing 15 posts - 1,621 through 1,635 (of 5,590 total)
Brandie Tarvin (3/22/2011)
March 27, 2011 at 10:16 am
If you don't understand this, just ask.
declare @date1 datetime,
@date2 datetime;
set @date1 = GetDate();
set @date2 = '20110511 08:00:00'; -- start date of sql...
March 27, 2011 at 4:54 am
Lynn Pettis (3/26/2011)
I may be wrong, but I think I could count on one...
March 27, 2011 at 4:43 am
You'll want to query the system views directly:
select * from sys.key_constraints
select * from sys.default_constraints
select * from sys.foreign_keys
select * from sys.check_constraints
select * from sys.indexes
It should be pretty obvious what each is...
March 26, 2011 at 12:10 pm
Search this site for detecting gaps and islands - you're going to be interested in the islands.
(Posting tip: when posting dates, include a "SET DATEFORMAT DMY" so that people in...
March 26, 2011 at 11:52 am
David Krauus (3/25/2011)
March 25, 2011 at 10:19 pm
Please check out the two articles in my signature: CrossTabs and Pivot Tables, Parts 1 and 2. This should give you all the information you need for how to do...
March 25, 2011 at 10:14 pm
Use the DelimitedSplit8K function. Here is the latest version of the Delimited Split Function.
And you would use it like this:
-- make and populate a table to hold the test data
DECLARE...
March 25, 2011 at 8:00 pm
Would this suffice?
execute sp_msforeachtable 'sp_helpindex ''?''';
March 25, 2011 at 7:53 pm
You can use "select * into table from OpenRowset / OpenQuery (executing your stored procedure)".
March 25, 2011 at 7:51 pm
You need to use the delimited split function: Here is the latest version of the Delimited Split Function.
Then, use this code:
-- make and populate a table to hold the test...
March 25, 2011 at 7:44 pm
1. Is the end result the output from the select, or do you need those two columns updated in the table?
2. Are the DayID_in values always going to be consecutive...
March 25, 2011 at 12:10 pm
You know, the people that help out here are all un-paid volunteers, so please HELP US HELP YOU. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables...
March 25, 2011 at 11:56 am
No need to repost here, now that we know it's 2008 in the other thread.
Please post responses here.
March 25, 2011 at 11:39 am
Just to verify - you're using sql 2008? I ask because you posted in the sql 7/2000 forum, but your code has sql2008 syntax in the declare statement.
March 25, 2011 at 10:51 am
Viewing 15 posts - 1,621 through 1,635 (of 5,590 total)