I am in the proces of upgrading from access to SQL Server 2005, and I
am having a strange problem. When I set the value a column in a data
row to DateTime.Now and save it to the server the date is two days in
the future! This happens for both typed and untyped datasets.
ex DataTable dt=new DataTable("Test")
...
DataRow row = dt.Rows[0];
row["testDate"]=DataTime.Now;
...
dbAdapter.Update(dt);
the date saved will be exactly two days in the future.
The same code worked fine with Access, also I am using the OleDb
provider for SqlServerI know this is a dumb question, but what is the date and time set to on
the SLQ Server?|||Nice thought but no dice the server date time is correct|||Hello BetaD,
A couple of quick questions:
a. You did check that the local system (where the code is running) is correc
t?
b. If you're writing .NET code, are you using SqlClient or OleDbClient? If
you're using OleDbClient, why?
c. Is the datetime off in the dataset only or does it saved incorrectly to
SQL server only or is it wrong in both places?
Thank you,
Kent Tegels
DevelopMentor
http://staff.develop.com/ktegels/sql
Showing posts with label iam. Show all posts
Showing posts with label iam. Show all posts
Friday, March 23, 2012
Monday, March 19, 2012
Help! I need Decrypt Stored procedures
To a certain time atraz we having in a previous base you vary SP, and today
I
am needing. To put the same ones they had been encrypyted! Entering in
contact with the boss that in epoca made, it informed me that through the
sources I would consegueria to use the SP again. He happens that where was
the sources, I had a problem with the HD. Soon I need to Decrypt these
procedures that they are in the data base. Some of descriptografia had
success in few cases, others it of the one error message (below), and exclud
e
procedure. I tried this of link below, and follows the error:
http://searchsqlserver.techtarget.c...ket
=ETA
Erro:
Server: Msg 512, Level 16, State 1, Procedure DECRYPTSP2K, Line 22
Subquery returned more than 1 value. This is not permitted when the subquery
follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
It forgives for my English!hi,
may suggest to read following thread :
http://www.sql-server-performance.c...p?TOPIC_ID=3271
:-0
Regards
--
Andy Davis
Activecrypt Team
---SQL Server Encryption Software
http://www.activecrypt.com
"ygo" wrote:
> To a certain time atraz we having in a previous base you vary SP, and toda
y I
> am needing. To put the same ones they had been encrypyted! Entering in
> contact with the boss that in epoca made, it informed me that through the
> sources I would consegueria to use the SP again. He happens that where was
> the sources, I had a problem with the HD. Soon I need to Decrypt these
> procedures that they are in the data base. Some of descriptografia had
> success in few cases, others it of the one error message (below), and excl
ude
> procedure. I tried this of link below, and follows the error:
>
> http://searchsqlserver.techtarget.c...k
et=ETA
>
> Erro:
> Server: Msg 512, Level 16, State 1, Procedure DECRYPTSP2K, Line 22
> Subquery returned more than 1 value. This is not permitted when the subque
ry
> follows =, !=, <, <= , >, >= or when the subquery is used as an expression
.
>
> It forgives for my English!
I
am needing. To put the same ones they had been encrypyted! Entering in
contact with the boss that in epoca made, it informed me that through the
sources I would consegueria to use the SP again. He happens that where was
the sources, I had a problem with the HD. Soon I need to Decrypt these
procedures that they are in the data base. Some of descriptografia had
success in few cases, others it of the one error message (below), and exclud
e
procedure. I tried this of link below, and follows the error:
http://searchsqlserver.techtarget.c...ket
=ETA
Erro:
Server: Msg 512, Level 16, State 1, Procedure DECRYPTSP2K, Line 22
Subquery returned more than 1 value. This is not permitted when the subquery
follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
It forgives for my English!hi,
may suggest to read following thread :
http://www.sql-server-performance.c...p?TOPIC_ID=3271
:-0
Regards
--
Andy Davis
Activecrypt Team
---SQL Server Encryption Software
http://www.activecrypt.com
"ygo" wrote:
> To a certain time atraz we having in a previous base you vary SP, and toda
y I
> am needing. To put the same ones they had been encrypyted! Entering in
> contact with the boss that in epoca made, it informed me that through the
> sources I would consegueria to use the SP again. He happens that where was
> the sources, I had a problem with the HD. Soon I need to Decrypt these
> procedures that they are in the data base. Some of descriptografia had
> success in few cases, others it of the one error message (below), and excl
ude
> procedure. I tried this of link below, and follows the error:
>
> http://searchsqlserver.techtarget.c...k
et=ETA
>
> Erro:
> Server: Msg 512, Level 16, State 1, Procedure DECRYPTSP2K, Line 22
> Subquery returned more than 1 value. This is not permitted when the subque
ry
> follows =, !=, <, <= , >, >= or when the subquery is used as an expression
.
>
> It forgives for my English!
Subscribe to:
Posts (Atom)