Viewing 15 posts - 8,326 through 8,340 (of 9,641 total)
DateTime fields store date and Time so if you are using Between '6/1/08' and '6/30/08'
then you are actually saying give me all the data From 6/1/08 00:00:00 to 6/30/08...
July 21, 2008 at 10:59 am
It sounds like the OLE DB Command task it what you want then.
July 21, 2008 at 10:53 am
hengert (7/21/2008)
Thank you for your answer.This is what I came up with (Keep in mind that this is the first time I write T-SQL)
The code looks like it will create...
July 21, 2008 at 10:50 am
You can use the Execute OLEDB Command to do this.
What are you doing in the stored procedure?
July 21, 2008 at 10:37 am
No you cannot. temp tables created using #table_name are only available to that session and when you end step 1 and start step 2 sessions change. You...
July 21, 2008 at 10:30 am
Chris,
Thanks. I have not used all the new statistical functions in 2005 yet and had forgotten about rank. I changed my solution to use RANK and had about...
July 21, 2008 at 10:25 am
I think this may do what you want (I created some dummy data):
[font="Courier New"]DECLARE @customers TABLE(AccountNum INT, DM_Source_Id INT, Address VARCHAR(10))
DECLARE @i INT,
@j-2 INT
SET @i = 1
SET @j-2 =...
July 21, 2008 at 10:01 am
The first risk is poorly performing code. Why do the developers want to use the CLR? There have been a couple of threads here on SSC where there...
July 21, 2008 at 9:42 am
As far as separating databases and database backups, yes they should be on separate drives. Having backups doesn't to much good if the data drive fails and that is...
July 21, 2008 at 9:36 am
In SQL Server 2005 you can use Create Database [db_name] With Attach instead of sp_attachdb. You can also specify a new database name using sp_attachdb.
July 21, 2008 at 9:31 am
There was a follow up to the first article in my earlier post, Return Query Text Along With sp_who2 Using SQL 2000[/url], that may help. You can...
July 21, 2008 at 9:30 am
This line:
HR = ""
is causing .NET to throw an "Conversion from String to Integer" error. The way you are referencing the code in the report is fine. The...
July 21, 2008 at 9:16 am
Idle connections should not be causing blocking as they are doing nothing. Using sp_who or sp_who2 shows any blocked processes and the SPID which is causing the blocking. ...
July 21, 2008 at 9:02 am
You can actually use database mail without domain rights if the smtp server will allow anonymous logins.
July 20, 2008 at 11:08 am
Jeffrey is correct, the best way to do it is to pass all parameters to the sp from the application. It makes things easier on the programmer and does...
July 20, 2008 at 11:01 am
Viewing 15 posts - 8,326 through 8,340 (of 9,641 total)