Viewing 15 posts - 10,936 through 10,950 (of 13,469 total)
if the files are "in use", could it be that someone renamed database "D1" to another name?
With the select * from sysdatabases, Can you check the filename column and...
June 25, 2009 at 10:59 am
a DML trigger tells you who CHANGED data...doesn't help with trying to find who SELECTED data.
a DDL trigger tells you who CHANGED a table structure, , so it again does...
June 25, 2009 at 10:24 am
Carl, your example is for SQL 2008, right? I had previously understood that in 2008 you could use the table variables for parameters, and when i tested your code, it...
June 25, 2009 at 10:18 am
functions almost always need to be preceded with the owner/schema
so either of these should work:
Insert into newtable (trainingType, otherCols)
values (dbo.fnType(@varcharType), OtherValues)
or
Insert into newtable (trainingType, otherCols)
select dbo.fnType(@varcharType), OtherValues
June 24, 2009 at 1:09 pm
yes, there is a file that contains all the "noise" words that will be ignored.
on my dev machine, you it is named "noiseENG.txt or noiseENU.txt , and resides in the...
June 24, 2009 at 12:15 pm
glad i could help out; good luck on your project.
when you have time, you should add how to add other types of linked servers to your snippets of code; it's...
June 24, 2009 at 9:39 am
that's easy; the views sysservers or sys.servers hold all the linked server information, so something like this would work fine;
if exists(select * from sysservers where name='MyLinkedServer')
BEGIN
exec sp_dropserver 'MyLinkedServer','DropLogins'
END
June 24, 2009 at 9:24 am
this might help too; sometimes you want an alias for the other server instead of it's real name:
EXEC master.dbo.sp_addlinkedserver @server = N'MyLinkedServer',@srvproduct = N'', @datasrc = N'STORMSQL\SQL2005', @provider = N'SQLOLEDB';
--...
June 23, 2009 at 7:02 pm
hope this helps; here's a clean, simple example.
on my network, from my local dev machine ,there is a named instance on another server that i can connect to via SSMS,...
June 23, 2009 at 6:48 pm
you'll get much more out of this doing it yourself. there is more than one error in your code. Don't be afraid of making changes to it.
Like almost all forums,...
June 23, 2009 at 11:27 am
i think Carolyn's right; for reference, this is the exact syntax i use to connect to an access database; if the last command, sp_tables_ex works, you are set up correctly,...
June 23, 2009 at 10:27 am
kiranjanga2 (6/23/2009)
error is below.(EXECUTE cannot be used as a source when inserting into a table variable.)
there's your error. change your table variable to a temp table instead.
looks like the lines...
June 23, 2009 at 9:24 am
the REPLACE command is what you want:
SELECt Replace(columnname,' ','') As Columname from YourTable
it might be hard to see, but the command is singlequote-space-singlequote for WHAT to replace, and is two...
June 23, 2009 at 6:25 am
Tom i don't think noncode is a valid descriptor; i think you need to use plain or text.
i saved this from a post previously so i had the valid tags...
June 23, 2009 at 6:06 am
pradeep's suggestion for a trigger to uppercase the input would work, and you could force only the upper case values to be inserted with a slightly different constraint:
Create table Patient...
June 20, 2009 at 11:28 am
Viewing 15 posts - 10,936 through 10,950 (of 13,469 total)