Viewing 15 posts - 5,296 through 5,310 (of 13,465 total)
i'm getting closer:
this query shows me my permissions, as well as the permissions i directly inherit from roles i've been assigned;
it does not handle any recursive role-within-a-role yet;
i'm thinking that's...
June 28, 2012 at 8:04 am
ok a follow up to my own question:
in SQL2005,
SELECT * FROM fn_my_permissions(NULL,'DATABASE') for my example above only shows connect permission, but on SQL2008 and above, it shows the "VIEW...
June 28, 2012 at 7:34 am
you'll need to show the exact code you are using.
with that, we can show you how to join against a calendar table to get a range of dates.
based on my...
June 28, 2012 at 7:06 am
you should have continued your question in the original thread.
this logic :
SELECT RIGHT ('0000'+Store#,4)
appends 4 preceeding zeros to the store number, then grabs teh right 4 characters...so store '1'...
June 28, 2012 at 6:23 am
not that i'm aware of as far as the log being more dedicated to SSMS.
did you manually look in the backup folder?
C:\Users\yourusername\Documents\SQL Server Management Studio\Backup Files\Solution1
and see if anything was...
June 28, 2012 at 6:07 am
Rob to help alleviate some of that headache in the future, grab the SSIS addin here:
one of the things it has is that it automatically keeps a history of every...
June 28, 2012 at 5:53 am
could it be based on an openrowset command??
--database name required
SELECT *
FROM OPENROWSET( 'SQLNCLI',
...
June 27, 2012 at 2:15 pm
As far As i know, SQL Server doesn't have the specific granularity to restrict creation to only views;
giving someone ALTER permissions(like via GRANT ALTER ON schema or the role ddl_admin)...
June 27, 2012 at 10:50 am
I'mn out of practice, but it requires a correlated sub query, and what seems like a wierd format;
this is untested, but it's kind of like this, which looks weird (from...
June 27, 2012 at 9:33 am
based on your proposed format, [storenumber][ddmmy], you are assuming a store can only have one invoice a day? what if they want to have two?
3935 (6/27/2012)
How can i unique...
June 27, 2012 at 7:28 am
Reddy Ksr (6/27/2012)
i think in sql server 2008 we can rollback the committed transaction.but in server 2005 we can't.
can anyone suggest me what will be reason.
no. a commited transaction is...
June 27, 2012 at 6:47 am
also, to get the nth value, i'd add row number to the inner query :
declare @n int
SET @n = 4
SELECT sq.test
FROM (
SELECT row_number() over (order by name) As RW,
...
June 27, 2012 at 6:28 am
i had used the quickbooks driver from http://www.rssbus.com/ado/quickbooks/ so i could connect via a .NET application;
They had a decent amount of examples, and it was pretty easy to...
June 27, 2012 at 6:10 am
Jeff Moden (6/26/2012)
Lowell (6/26/2012)
i believe your options are to use bcp, CLR or powershellbcp + TSQL isgoing to require opening up xp_cmdShell.
BWAA-HAAA!!!! I use xp_CmdShell to run PowerShell...
June 26, 2012 at 4:15 pm
i believe your options are to use bcp, CLR or powershell
bcp + TSQL isgoing to require opening up xp_cmdShell.
EXECUTE master.dbo.xp_cmdshell 'bcp "SELECT object_name(object_id) As TbLName,name as ColName FROM SandBox.sys.columns...
June 26, 2012 at 2:23 pm
Viewing 15 posts - 5,296 through 5,310 (of 13,465 total)