Viewing 15 posts - 8,596 through 8,610 (of 13,469 total)
you are missing one closing parenthesis just before that END that raises the error.:
SET @Per = ABS((1.0 * (1-@RN)/(@rows -1)*100)) --<--missing last closing parenthesis...you
also, in the...
October 11, 2010 at 1:11 pm
no, but a procedure can.
a function is not allowed to do DML operations...UPDATE/DELETE...only select, or calculations based on the select.
a procedure is allowed to update data, and of course an...
October 11, 2010 at 12:20 pm
here's a skeleton to help you visualize.
I'm assuming:
1. a tracking table in the MASTER database...not the Vendors database.
2. a snippet to initialize the data...you have...
October 11, 2010 at 12:15 pm
i would go with GSquared suggestion of creating a log table, insert how many rows are in the table right now,a nd then have a job compare the current rowcount...
October 11, 2010 at 11:13 am
i see what you were refering to...if you run sp_rev_login with no parameters, every login EXCEPT sa is scripted.
if you pass a specific login name, it gets scripted if it...
October 11, 2010 at 10:42 am
???
EXEC sp_help_revlogin 'sa'
/* sp_help_revlogin script
** Generated Oct 11 2010 12:10PM on DBSQL2K5 */
-- Login: sa
CREATE LOGIN [sa] WITH PASSWORD = 0x01004086CEB61FB1FE6C34DEC914CC131938263D12A9FA0B2EF7 HASHED, SID = 0x01, CHECK_POLICY = ON, CHECK_EXPIRATION...
October 11, 2010 at 10:12 am
ahh good job Cory! that's a good to know feature.
i noticed any changes there affect newly created tabs only...but that's not an issue.
very nice.
October 11, 2010 at 10:04 am
yeah i don't think the display aspects of the tabs are exposed;
I see what you are saying, there's filename, server info, login info and spid all in the tab;
it...
October 11, 2010 at 9:53 am
MarvinTheAndriod (10/11/2010)
Huh? (http://support.microsoft.com/kb/918992/) is sp_help_revlogin. The issue is with regards to transferring the Sa password.
sp_help_revlogin is a script provided by microsoft which scripts out logins and their passwords as...
October 11, 2010 at 9:33 am
leaders_j that code snippet you have is really old; i bet it's from 5 years ago.
It's from a project i play with now and then that scripts any table via...
October 11, 2010 at 7:47 am
it's much easier to adapt a wheel than it is to re-invent one.
here is a function that takes a decimal and returns it as words in english.
you could easily adapt...
October 8, 2010 at 3:21 pm
because windows groups can be granted access, and that includes people who potentially never logged into your instance yet, i think you have to query active directory for the...
October 8, 2010 at 2:56 pm
I'm pasting a tried and true snippet of code that uses sp_OaCreate.
All it is doing is witing to files in the root of the harddrive: c:\header.txt + c:\body.txt c:\results.txt'
etc.
this can...
October 8, 2010 at 2:24 pm
I am very sure it is not; an indexed view requires, among other things, that all the tables be schemabound...but that doesn't prevent you from creating a view that is...
October 8, 2010 at 10:36 am
leo it looks like you have two custom functions;
one is an aggregate function named LAG, and the other is a function which returns a date based on some business rules:...
October 8, 2010 at 10:34 am
Viewing 15 posts - 8,596 through 8,610 (of 13,469 total)