Viewing 15 posts - 61 through 75 (of 110 total)
If you know the exact path and name of the file you are looking for then try xp_FileExist:
declare @FilePathName varchar(100)
declare @file_exists int
set @FilePathName = 'L:\temp\Test.txt'
EXECUTE master.dbo.xp_FileExist @FilePathName, @file_exists OUTPUT
if...
March 30, 2008 at 8:59 pm
One possibility is that the plan used by the stored procedure was based on statistics that existed when the procedure was made and that the statistics changed considerably by the...
March 27, 2008 at 6:35 pm
With the types of queries you mentioned you should be ok on performance since they do not require you to parse the xml. That is just an assumption on my...
March 26, 2008 at 5:48 pm
Is there at least some commonality between the forms? For example, entry date, name of person filling out the form, key place, incident date.
Do you have any sense on how...
March 25, 2008 at 7:28 pm
hi
I need to write a stored procedure to insert into Boat and quote tables.
The first 4 tables are good. After that I need to write a insert stored procedure by...
March 25, 2008 at 6:50 pm
Definitely not select into. Break the update into batches. Don't try to update the whole table at one go.
There was another question just like this in the last couple of...
March 25, 2008 at 6:30 pm
Yes there is. This site has an article called Fragmentation 101 that is a good place to start.
March 25, 2008 at 6:21 pm
You're welcome. Thanks for letting us know it worked for you.
March 25, 2008 at 6:17 pm
Why are you disabling your employee table triggers? Won't that make it possible for records to be added & updated that never get your idm table? Are you trying to...
March 24, 2008 at 6:48 pm
In what way is EntryDate "2007-01-17 14:47:29.000" the latest one for ASOFDATE? All of your example ASOFDATEs are 2007-01-01.
March 24, 2008 at 5:09 pm
There is no need to include upper() in the where clause. TSQL is not case sensitive. Since the minumum allowable amount of space may vary between systems it makes more...
March 22, 2008 at 8:29 am
You're welcome. Good to hear you fixed it.
March 22, 2008 at 8:04 am
When you say it works for 1 row do you mean that it works for any 1 row or one row in particular? It may be that one of the...
March 21, 2008 at 3:40 pm
Assuming you want to do something like select Aval from the table var where fld = second parm, the answer is no. You cannot use dynamic sql in a function.
March 20, 2008 at 7:32 am
If you have to substitute tables, then do the substitution like this:
declare @TableName nvarchar(255), @sql nvarchar(500)
set @TableName = 'AdventureWorks.HumanResources.Employee';
set @sql = N'SELECT * FROM ' +...
March 19, 2008 at 7:34 pm
Viewing 15 posts - 61 through 75 (of 110 total)