Viewing 15 posts - 121 through 135 (of 196 total)
Another point to note is that you can stop this type of query at any point with out losing work already done. So if youe query locks up tables...
September 4, 2003 at 6:39 am
I would suggest a recursive Function or Stored Procedure i.e. The Function calls itself to build a string of previous values.
September 4, 2003 at 6:20 am
I suspect you have a issue with quoted identifiers in the last two statements. You may want to set quoted_identifiers off so double quotes(") are not seen as delimiting...
September 3, 2003 at 1:33 am
Just add ' As a ' between the closing bracket and the 'group by'
SELECT *
FROM (
SELECT *, CHECKSUM(*) AS cs
FROM table
)as...
August 14, 2003 at 8:27 am
Often when using exists or in subqueries I use the "top 1" in the select so query eecution stops of first row retrieved.
July 22, 2003 at 4:18 am
Both servers are running Win 2000 SP4, with SQL 2000 SP3. Just to complicate things. A few months ago I configured replication between these for testing purposes and it...
July 21, 2003 at 3:04 am
I have used dynamic sql to create the required query ( as transio listed ) based on the values to be transposed. Still have not found a way to do...
June 20, 2003 at 4:17 am
I would use the vbscript task in dts to format your source file into as many different files as you have tables. Then do a simple transform task into...
June 17, 2003 at 6:56 am
If you know VBScript you could consolidate all the info into one file from the all source files in the directory and then just do one import. Just another...
June 17, 2003 at 6:42 am
If I understand this correctly, you are executing the sql on the source database which means that you need to have a odbc to the destination datavbase present on the...
June 13, 2003 at 6:17 am
May also be that on your machine you have network mappings which is not present in the sql server account. Always use fully qualified names.
June 13, 2003 at 4:48 am
Assuming you are using sql 2k I would say use a global variable to assign the date of the information you want to pull and only move those as apposed...
June 13, 2003 at 4:38 am
Looking at you post, when you do the query
@FieldValue = SELECT @FieldName FROM Jobs WHERE ID = @ID
SQL sees @FieldName as a constant not a identifier. You need...
June 13, 2003 at 4:04 am
Anbu.
I frequently have to do this type of query.
What i do is to create a temp table with an identity column.
Add required rows ordering by key columns and date.
Do...
June 5, 2003 at 12:45 am
Assuming that the SQL Agent is running, check that the account that sql agent runs under has the required rights to run the package and the induvidual tasks in the...
June 4, 2003 at 11:44 pm
Viewing 15 posts - 121 through 135 (of 196 total)