Viewing 15 posts - 1,291 through 1,305 (of 1,957 total)
This will get the file into a temp table.
You have not said what you want to do with it from there....
IF OBJECT_ID('tempdb..#xmlTable') IS NULL
CREATE TABLE #xmlTable (xmlCol XML);
DECLARE @sql...
July 6, 2011 at 6:25 pm
Well, it depends what you want to do, but here is a snippet taken from a routine I wrote along those lines:
DECLARE @sql VARCHAR(MAX);
DECLARE @FileName VARCHAR(512);
SET @FileName = 'c:\myfile.txt'
SET @sql...
July 6, 2011 at 5:44 pm
Hi,
I didn't like all the RBAR so I had a go at a non-RBAR and came up with this.
It is a bit hard to read because of the complexity of...
July 6, 2011 at 5:17 pm
have you tried restoring file associations from within BIDS?
July 2, 2011 at 5:12 pm
PaulB-TheOneAndOnly (7/1/2011)
mister.magoo (7/1/2011)
July 1, 2011 at 1:00 pm
MuskaanGoyal (6/24/2011)
I have a requirement to restrict everyone (including DBA) from accessing user defined sql server database objects (like tables/function/views/stored procedures triggers etc). No one should be able to select/modify/delete/drop/disable...
July 1, 2011 at 12:55 pm
No, don't be embarrassed, I quite often rely on talking to others to spark something - face to face it often happens before you finish the sentence, online it can...
June 28, 2011 at 6:13 pm
I would guess that login 'A' has the processadmin server role - that does not show up in server_permissions.
June 28, 2011 at 5:56 pm
Nils Gustav Stråbø (6/28/2011)
Yes, SHAME on you 😛So what did we learn? Nothing actually; just another confirmation that all problems are caused by developers 🙂
No, what we learnt here was...
June 28, 2011 at 7:20 am
I tried it on my desktop and got it to run in about 5 minutes by a small change...
SET NOCOUNT ON
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id =...
June 27, 2011 at 6:15 pm
because your default collation is compatible with non-unicode characters
June 27, 2011 at 5:52 pm
Collation, Collation, Collation 😉
try this : select CHARINDEX('a',N'a?' COLLATE latin1_general_bin)
Your db collation most probably not compatible with the unicode characters you are using.
June 27, 2011 at 4:48 pm
The extra code at the end is part of the WHERE clause, not the join!
and stcyt = '201110'
June 27, 2011 at 4:29 pm
MY usual interpretation of ownership in this arena comes down to "who can make changes to the code".
In some cases, the DBA can make changes to the code - if...
June 27, 2011 at 4:17 pm
Viewing 15 posts - 1,291 through 1,305 (of 1,957 total)