Viewing 15 posts - 5,311 through 5,325 (of 13,465 total)
did i read your requirement wrong?
i thought you wanted to build an image on the fly based ond ata in your dataset, was i wrong?
that was the development path i...
June 26, 2012 at 2:10 pm
ramadesai108 (6/26/2012)
June 26, 2012 at 12:31 pm
Check your data type on any parameters ,whether in a proc or n the code in your application.
Ive stepped in that myself where a parameter fornmy sqladapter was the wrong...
June 26, 2012 at 11:08 am
and here's another way just using a sub select instead of the function:
note to self: That cross apply stuff is kewl, need to use it more.
SELECT PS.LineGUID AS LINE_GUID,
PS.PODSID,...
June 26, 2012 at 10:20 am
what do you mean by application?
YourBusinessApp.exe, or do you mean the database the app connects to?
performance typically has a lot more to do with the queries being performed, and the...
June 26, 2012 at 7:45 am
anthony.green (6/25/2012)
Hi, Welcome to SSC.Please follow the second link in my signature on posting code so that we can help you out further.
careful there! the knee jerk reaction for DDL...
June 26, 2012 at 7:34 am
a query with Column1 > Column2 best plan is going to be a index scan, right? it has to use the index to get all values greater than to match...
June 26, 2012 at 5:02 am
as far as i know, the EXECUTE AS must use a user for permissions, so you'd need to add that superUser as a user so that you can use the...
June 25, 2012 at 7:24 pm
i end up creating a special login/user for the whole execute as stuff:
it works well for me.
--first we need a sysadmin role with no login, which will beused
--for execution context...
June 25, 2012 at 3:23 pm
two minor syntax issues;
the first is missing the single quote after "SSN_GRANTED"
EXEC sp_addrolemember N'SSN_GRANTED', N '[T001371\ViewSSN]'
and for both commands, there cannot be a space between the N and the single...
June 25, 2012 at 3:17 pm
well it's a syntax issue, i'd guess you are missing something compared to my working example. the leading N or a single quote, or something.
Can you post the EXACT command...
June 25, 2012 at 3:05 pm
Laura it's probably permissions;
since xp_cmdshell requires elevated permissions, try adding EXECUTE AS and see if that resolves it:
--the EXECUTE AS must be a user in the database...not a login
CREATE...
June 25, 2012 at 2:59 pm
OK this was a fun proof of concept again.
building an image out of text on the fly is going to require programming;
i'm not an SSRS guy, but i can...
June 25, 2012 at 2:54 pm
there's a different proc for that:
in this example, you'd change '[~~]' to '|':
take a look at the documentation, i think i fleshed it out with a lot of examples;
http://sqlclrexport.codeplex.com/documentation
EXECUTE...
June 25, 2012 at 1:28 pm
where the heck did i put my jump to conclusions mat?
mea culpa, i would have sworn i read import via BCP/xp_cmdshell. it was the "This query works fine to import...
June 25, 2012 at 12:48 pm
Viewing 15 posts - 5,311 through 5,325 (of 13,465 total)