Viewing 15 posts - 3,781 through 3,795 (of 7,187 total)
Is it the log file that grows to fill the disk? If so, clear out the entries one day at a time (or whatever interval best suits your disk...
October 16, 2013 at 9:15 am
The second one definitely won't work. It's not valid syntax. Try this - it doesn't work:
DECLARE @string varchar(100)
SET @string = '''A'',''B'''
SELECT * FROM sys.objects
WHERE name IN (@string)
I think...
October 16, 2013 at 8:44 am
Ah yes - in my great haste I assumed that your query resulted in the comma-separated list. I can't tell whether the issue here is generating the list, or...
October 16, 2013 at 8:33 am
SELECT @HCodes = DISTINCT...
That should do it, shouldn't it?
John
October 16, 2013 at 8:26 am
Please will you post the value of your variable (in other words, the command you're trying to run)? It may be that there's another way of doing it. ...
October 16, 2013 at 8:22 am
Those are horrible. I recommend avoiding that design if at all possible. I've seen it described as EAV (Entity Attribute Value), OTLT (One True Lookup Table) and MUCK...
October 15, 2013 at 9:37 am
Exactly what I was going to say. I would also have added that this will also grant SELECT on views in the schema, so be careful if that isn't...
October 15, 2013 at 9:16 am
Not sure whether Gail is being unduly modest or trying encourage you to do your own research. Either way, you may want to read this[/url].
John
October 11, 2013 at 7:35 am
Restore your last good full backup and all transaction log backups after it.
John
October 11, 2013 at 6:10 am
i have log on with james..he can see all database names and logins ( he can not able to access)..he can acess system databases..even user can query system databases
Is that...
October 11, 2013 at 1:20 am
When you run it in Visual Studio, it runs as you. When it runs as a job, it runs as the SQL Server service account, or whatever proxy is...
October 10, 2013 at 7:24 am
Try it for yourself. Create a new login with the restricted permissions and log on as it. See what you can see and see what you can do....
October 10, 2013 at 5:16 am
Add a WHERE clause. And your STUFF function can be simplified. Since it's always the first character you're changing, and you always change it to M, the...
October 10, 2013 at 4:59 am
You need to use the STUFF function. Have a go at writing the UPDATE query, and post back if there's anything in particular that you don't understand.
John
October 10, 2013 at 4:45 am
Viewing 15 posts - 3,781 through 3,795 (of 7,187 total)