all groups > sql server connect > november 2003 >
You're in the

sql server connect

group:

Date Parameter to SQL Server


Date Parameter to SQL Server Tis
11/27/2003 5:02:36 PM
sql server connect:
I have problems passing a date as a parameter from .NET to
SQL Server. .Net seems to pass across the date
as "#11/28/2003#" SQL Server seems to want it in the
form '11/28/2003'. Can someone tell me how to reconcile
Re: Date Parameter to SQL Server Tis
11/28/2003 6:51:46 AM
Sorry, Allan, I was not sufficiently clear. My parameter
is one of several passed from .NET to a stored procedure
in SQL Server. .NET seems to pass date parameters with the
# and SQL Server just won't accept them. So clearly
translation is required somewhere, but I don't know the
best way to do it. Perhaps I am in the wrong forum?

[quoted text, click to view]
Re: Date Parameter to SQL Server Allan Mitchell
11/28/2003 8:23:44 AM
Are you using the SQLClient ?
wrapping dates in # is an access thing (not SQL Server)
SQL Server wraps dates in '



--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



[quoted text, click to view]

AddThis Social Bookmark Button