Viewing 15 posts - 3,106 through 3,120 (of 13,469 total)
i thought it was pretty straight forward from there;
you would simply modify my example with a WHERE statement...
WHERE filz.[name]='XXX_2012'
if you need a fulls cript, i'm pretty sure if you search...
July 10, 2013 at 11:58 am
newbieuser (7/10/2013)
July 10, 2013 at 11:17 am
i'll throw my two cents in;
I use a combination of saved scripts in a specific folder(lazily using C:\Users\<username>\Documents\SQL Server Management Studio\Projects, and that folder has subfolders and hundreds, probably thousands...
July 10, 2013 at 10:49 am
most likely permissions, because the startup account of SQL server doesn't have access to the network share.
When you touch anything outside of a database, SQL server does not use...
July 10, 2013 at 10:30 am
well, i've got this saved in my snippets to find tables by filegroup:
SELECT
objz.[name] As TableName,
objz.[type],
idxz.[name] As IndexName,
...
July 10, 2013 at 10:15 am
lloks like the string is constructed slightly wrong: thank goodness for the print statements!
CREATE LOGIN [test1] WITH PASSWORD = 'password',N' DEFAULT_DATABASE=[Master], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF;
i think the cod eneeds to be changed...
July 10, 2013 at 9:17 am
because your obiwan user is going to be creating logins and also executing AS., it needs to be a sysadmin(for CREATE LOGIN) and db owner in the database (for...
July 10, 2013 at 7:54 am
Brandie you are spot on about the too literal thing, and i knew it when i heard the requirement; I thank you for your time in adding to my question...
July 10, 2013 at 5:26 am
instead of
EXEC sp_executesql @sql
use
EXEC(@sql)
which has no limits on the query size, since it's not parameterized. ou are not passing parameters via sp+executesql, so you'd be good to...
July 10, 2013 at 2:48 am
vinod.venugopal 71189 (7/9/2013)
Thanks for clarifying my doubt. I will...
July 10, 2013 at 2:20 am
ok, i've seen that kind of thing, but that's basically a wireless monitor cable right? only one person can use the screen?
I don't think that's quite what i'm after, but...
July 9, 2013 at 3:10 pm
you can get the IP address for connections, if that helps;
compare this to sp_who2, and see if it helps you any:
select
conns.client_net_address,
conns.auth_scheme,
sess.* from sys.dm_exec_sessions sess
LEFT OUTER JOIN sys.dm_exec_connections conns on...
July 9, 2013 at 3:08 pm
ok if anybody has some answers on my off the wall post here, i'd appreciate it: this is more of a "heard of an app that does this"? question:
July 9, 2013 at 2:32 pm
SQL Guy 1 (7/9/2013)
That's funny, I never knew about such trick, thanks Lowell. But why Microsoft allows to change them at all? It can be really misleading.
it's a property...
July 9, 2013 at 2:27 pm
Viewing 15 posts - 3,106 through 3,120 (of 13,469 total)