I don't remember granting any permission when I created the Sproc. How to enable that now?
Also it should allow only 'Windows authenticated users' who access the system and not public.
I have an ASP>NET application that uses Integrated Windows authentication. My Web.config looks like below
<add key="dbconnection" value=" server=XXX;Initial Catalog=XXX;persist security info=False;Integrated Security=SSPI;Pooling=true" />
When users try to access my application, they get the...
I have an ASP.NET application that uses Integrated Windows authentication. My Web.config looks like below
<add key="dbconnection" value=" server=XXX;Initial Catalog=XXX;persist security info=False;Integrated Security=SSPI;Pooling=true" />
When users try to access my application, they get the...
Can I write a procedure that should connect to a different SQL server and execute a series of SELECT statement on that SQL SERVER.
Reason being is I do not have permission to create procedure on that destination server while I have permission to execute a SELECT statement. Please clarify
Thanks,
I tried return earlier. It does not go well with varchar types :-(
Another quick question :
Is it better to have the Id column in a table
(ex: studentid) as a Identity datatype or as a char datatype ( to have ids like S1,S2 etc...).
I have so many master tables in my DB and have to maintain...
I'm Sorry. But ExecuteNonQuery() returns number of affected rows while I want the OUTPUT param from procedure.
Here is how my procedure looks like:
CREATE PROCEDURE dbo.GenerateRowids
@TableName varchar(50),
@ColumnName varchar(50),
@rowidval varchar(30) output
AS
Begin
declare @sql...
I have a STORED PROC for dynamic T-SQL that returns a OUTPUT varaible of typevarchar . This works fine in query analyzer.
But when I try to get values in asp.net page it does not return anything. No execeptions or errors also.
HDConn = CommonMethods.BuildConnection();
SqlCommand cmd1 = new...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.