Viewing 15 posts - 5,716 through 5,730 (of 7,636 total)
Yep, they are that way on my SQL 2008 box also.
Well here is a corrected and tested version that should work for all of the databases, including the Reporting DBs:
ALTER...
August 28, 2008 at 1:14 pm
Try editing the Connection properties and on the Definition tab, edit the Command Text and put the following in front of the text that is already there:
EXEC sp_setapprole 'test',{encrypt N...
August 28, 2008 at 12:34 pm
Hmm, thats a new one on me. Of course I hardly ever get to work with DB's with different collations.
Try this altered version and let me know...
August 28, 2008 at 11:21 am
What edition of SQL Server do you have?
And what kind of step is it? (CmdExec, T-SQL, etc.)
August 28, 2008 at 10:53 am
Heh, I made the same mistakes. Here is a correct version:
Select MID,
(((1.0+Dt1/100.0)
*(1.0+Dt2/100.0)
*(1.0+Dt3/100.0)
*(1.0+Dt4/100.0)
*(1.0+Dt5/100.0)
*(1.0+Dt6/100.0)
*(1.0+Dt7/100.0)
*(1.0+Dt8/100.0)
*(1.0+Dt9/100.0)
*(1.0+Dt10/100.0)
*(1.0+Dt11/100.0)
*(1.0+Dt12/100.0))-1.0) * 100.0
from Prod_Issue
This gives the same results as the Excel.
August 28, 2008 at 10:39 am
Karthik: Product multiplies, Sum adds. What you want is something like this:
Select MID,
( 1.0+Dt1/100.0-1.0
+ 1.0+Dt2/100.0-1.0
+ 1.0+Dt3/100.0-1.0
+ 1.0+Dt4/100.0-1.0
+ 1.0+Dt5/100.0-1.0
+ 1.0+Dt6/100.0-1.0
+ 1.0+Dt7/100.0-1.0
+ 1.0+Dt8/100.0-1.0
+ 1.0+Dt9/100.0-1.0
+ 1.0+Dt10/100.0-1.0
+ 1.0+Dt11/100.0-1.0
+ 1.0+Dt12/100.0-1.0) * 100.0
from...
August 28, 2008 at 10:20 am
Simple way:
Delete From YourTable T
Where EXISTS( Select * from YourTable T2
Where T.REFNOCOLUMN = T2.REFNOCOLUMN
...
August 28, 2008 at 10:04 am
As I recall in .Net, you need to switch from SQLClient.net to ODBCClient. (not sure?)
August 28, 2008 at 9:37 am
Yes, it takes more space. But Unicode/NChar is the solution for this and this is exactly the reason that it exists.
I don't know about the "N" before the quote,...
August 28, 2008 at 9:33 am
psangeetha (8/28/2008)
Are you using this method currently without encryption??
I have seen it both ways, though I myself may not be actually "using" it. Most of the time...
August 28, 2008 at 9:11 am
psangeetha (8/28/2008)
Does the below command store the password in encrypted format or plain text??[codee]EXEC sp_setapprole 'test', N'test';[/code]
Plain text. By the way the ODBC Encrypt does not store the password,...
August 28, 2008 at 9:01 am
Actually, I do notice one difference between your code and the BOL Example. This line:
psangeetha (8/28/2008)
EXEC sp_setapprole 'test',{encrypt N'test'}, odbc
Is actually like this in the example:
EXEC sp_setapprole 'test',{encrypt N...
August 28, 2008 at 8:51 am
Sadly, I have never had the opportunity to implement the ODBC Encryption feature, so I cannot help you much. Hopefully, someone else here can. If you do figure...
August 28, 2008 at 8:36 am
Viewing 15 posts - 5,716 through 5,730 (of 7,636 total)