Click here to Skip to main content
15,892,005 members
Home / Discussions / Database
   

Database

 
QuestionMy Sql Date Formatting Issue Pin
Anupbala15-May-08 20:04
Anupbala15-May-08 20:04 
QuestionCan it Joined two tables like this? Pin
jason_mf15-May-08 19:18
jason_mf15-May-08 19:18 
AnswerRe: Can it Joined two tables like this? Pin
Krish - KP15-May-08 19:36
Krish - KP15-May-08 19:36 
GeneralRe: Can it Joined two tables like this? Pin
jason_mf15-May-08 19:39
jason_mf15-May-08 19:39 
QuestionINSERT,UPDATE on Attached SQL Database File not working. Pin
JOSHY M RAJ15-May-08 18:50
JOSHY M RAJ15-May-08 18:50 
AnswerRe: INSERT,UPDATE on Attached SQL Database File not working. Pin
Mycroft Holmes15-May-08 20:07
professionalMycroft Holmes15-May-08 20:07 
GeneralRe: INSERT,UPDATE on Attached SQL Database File not working. Pin
JOSHY M RAJ15-May-08 20:34
JOSHY M RAJ15-May-08 20:34 
QuestionAccess violation problem Pin
jgrogan15-May-08 11:14
jgrogan15-May-08 11:14 
Guys,
I have a problem with a stored proc in SQL Server 2000. I'm logged in as 'sa' so have complete access to the DB. I have a table defined as follows:

CREATE TABLE Conduit (
Index_i int IDENTITY (1,1) NOT NULL Primary Key,
Name_vc nvarchar(125) UNIQUE NOT NULL,
StartDate_dt datetime
)
GO

I then have 2 stored procs that access it:

CREATE PROCEDURE ReadConduitNames
AS BEGIN
SET NOCOUNT ON
SELECT Name_vc FROM Conduit
END
GO

and

CREATE PROCEDURE ReadConduit
{
@Name_vc nvarchar(125)
}
AS BEGIN
SET NOCOUNT ON
SELECT * FROM Conduit WHERE Name_vc = @Name_vc
END
GO

The first stored proc runs fine, but the second one gives the following error:
[Microsoft][ODBC SQL Server Driver]Syntax error or access violation

I've tried various forums and msdn, but can't find an answer as to why the second stored proc won't load.

Any thoughts?
Thanks in advance,
John.
AnswerRe: Access violation problem Pin
Blue_Boy15-May-08 12:25
Blue_Boy15-May-08 12:25 
GeneralRe: Access violation problem Pin
jgrogan15-May-08 18:51
jgrogan15-May-08 18:51 
GeneralRe: Access violation problem Pin
Blue_Boy15-May-08 21:42
Blue_Boy15-May-08 21:42 
GeneralRe: Access violation problem Pin
Mycroft Holmes15-May-08 20:02
professionalMycroft Holmes15-May-08 20:02 
GeneralRe: Access violation problem Pin
jgrogan15-May-08 22:38
jgrogan15-May-08 22:38 
QuestionProblem with RSClient Print paging Pin
jeguzmanv15-May-08 8:34
jeguzmanv15-May-08 8:34 
AnswerRe: Problem with RSClient Print paging Pin
Blue_Boy15-May-08 8:42
Blue_Boy15-May-08 8:42 
GeneralRe: Problem with RSClient Print paging Pin
jeguzmanv16-May-08 6:27
jeguzmanv16-May-08 6:27 
GeneralRe: Problem with RSClient Print paging Pin
Blue_Boy16-May-08 9:08
Blue_Boy16-May-08 9:08 
Questionprocedure Pin
trilokharry15-May-08 6:01
trilokharry15-May-08 6:01 
AnswerRe: procedure Pin
Blue_Boy15-May-08 8:14
Blue_Boy15-May-08 8:14 
GeneralRe: procedure Pin
trilokharry15-May-08 19:25
trilokharry15-May-08 19:25 
GeneralRe: procedure Pin
Ashfield15-May-08 21:17
Ashfield15-May-08 21:17 
GeneralRe: procedure [modified] Pin
Blue_Boy15-May-08 21:31
Blue_Boy15-May-08 21:31 
GeneralRe: procedure Pin
trilokharry16-May-08 0:15
trilokharry16-May-08 0:15 
QuestionHi can anybody tell me how to do this please Pin
jhansirani15-May-08 5:23
jhansirani15-May-08 5:23 
AnswerRe: Hi can anybody tell me how to do this please Pin
Ashfield15-May-08 21:19
Ashfield15-May-08 21:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.