Friday, March 30, 2012
HELP!...VB.NET killed SQL Server
Yesterday I installed VB.NET on my machine. I had been runnng SQL Server
2000. After the install SQL Server will not run. SQLAgent fails with the
error "1068: The dependency service or group failed to start". When I try to
start MSSQL service I get a message it started then stopped because it may
not have anything to do.
I was planning to install SP3 of SQL Server 2000, so I tried that, but it
fails to install because (it seems) it needs SQL Server to be running.
Any ideas? Right now I desperately need SQL Server but not VB. So, I
guess my next move is to un-install VB.NET, which is going to be a royal
pain, and that may not even work because such a big install cannot be truly
uninstalled. After that I would fall back to an OS restore point.
Help, please!
Tim
> When I try to
> start MSSQL service I get a message it started then stopped because it may
> not have anything to do.
Can you post the SQL Server errorlog file? Assuming it is only a few rows, of course...
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Tim" <Tim@.discussions.microsoft.com> wrote in message
news:D3C2B8A5-17F9-448D-8EA0-19F5A4119907@.microsoft.com...
> Hi,
> Yesterday I installed VB.NET on my machine. I had been runnng SQL Server
> 2000. After the install SQL Server will not run. SQLAgent fails with the
> error "1068: The dependency service or group failed to start". When I try to
> start MSSQL service I get a message it started then stopped because it may
> not have anything to do.
> I was planning to install SP3 of SQL Server 2000, so I tried that, but it
> fails to install because (it seems) it needs SQL Server to be running.
> Any ideas? Right now I desperately need SQL Server but not VB. So, I
> guess my next move is to un-install VB.NET, which is going to be a royal
> pain, and that may not even work because such a big install cannot be truly
> uninstalled. After that I would fall back to an OS restore point.
> Help, please!
> Tim
|||Thanks! I ran the SQL Server setup program with the option "Rebuild
Registry" and now it seems fine. Thanks again!
Tim
"Tibor Karaszi" wrote:
> Can you post the SQL Server errorlog file? Assuming it is only a few rows, of course...
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Tim" <Tim@.discussions.microsoft.com> wrote in message
> news:D3C2B8A5-17F9-448D-8EA0-19F5A4119907@.microsoft.com...
>
>
HELP!! SQL Server Express 2005 engine connection to my DB
Preface, I am just starting to learn about database and web development.
I installed VS.net 2005 which updated my web site project file and automatically attached it to a database. It connected to ".\app_data\aspnetdb.mdf". However it messed something up and the connection didn't work. If I create a project from scratch, it connects to its DB just fine, but not my upgraded project.
However, when I publish my web site, I need to use ODBC. So, my thought was to simply set up the system locally in a way that will make it easy to connect on the web site. I was told to add a system DSN to the "Microsoft ODBC Administrator". I tried to add a "SQL Server" and give it the database name but it failed to connect.
So, then I ran the SQL Server Configuration Manager and looked at the server properties and found this string under the advanced -> startup parameters.."-dc:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf;-ec:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG;-lc:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf"
My database is in an entirely different folder. The database it looks like it is servicing is a "master.mdf" database installed under the SQL server install folder. So, I figured that I found my problem. I just have to change this file to map to mine. I replaced these three strings with paths to my aspnetdb.mdf/ldf files, and created a LOG folder. Howwever, it wasn't able to connect to this database. It said something like "it doesn't exist or you don't have permission", even though I gave it the right path.
So, I'm at a loss for how to get my application to be able to use the ODBC interface to connect to its very own database on my local system.
What do I need to do? Please help!
You need to create a Windows Authentication account on the server for ASPNET with a password.
When an .aspx page loads and tries to access the server, it uses Windows Authentication unless you code the connectionstring to use SQL authentication.
After you create the ASPNET Account, make your connection string look like this:
connectionString="Data Source=ODC01;Initial Catalog=OEM;Integrated Security=True"
Adamus
|||Thanks you for the feedback. Unfortunately I'm still a bit confused. My problem is that I don't have a complete picture of how this is supposed to work.
Are you saying that I must set up a the server to use an account that uses Windows Authentication before I can attach it to my own MDB file? In other words, it will only connect to the default master.mdb file until I create an account?
Also, using "local" or "system" isn't good enough, I have to specify a user account even on my own personal computer running XP? I am the only one who uses this system, and there is no windows server running on the network. This is my home setup.
This is the map that I understand. There are 3 connections that must be made for this to work.
mydb.mdb --1 (get server to serve my DB)--> SQL Server express 2005 --2 (tell ODBC about my DB exposed by the server)--> ODBC --3 (using the connection string)--> Website.
Right now I beleive none of the 3 connections are working, and I feel like I need to get the step 1 done before I can establish and verify step 2 and then finally use the connection string in step 3.
Are you saying that I must create a Windows Authentication user account before step 1 will work? Does that simply meen that I create a user called "SQL Server" with minimal access on the computer and log into it whenever I want it to connect?
Is there a "complete idiots guide to establishing a SQL server 2005 connection from your web site to your database" book that I could buy?
|||I take it all back. You were right. Now I understand. I actually had the account set up correctly on the server side, but I wasn't logging in correctly.
Second, when I tried to attach the server to ODBC I was using my computer name alone, when I needed to use <computer_name>\SQLExpress.
Now I have to figure out the connection string. But I am finally over my biggest hurdle. Thanks!
HELP!! SQL Server Express 2005 engine connection to my DB
Preface, I am just starting to learn about database and web development.
I installed VS.net 2005 which updated my web site project file and automatically attached it to a database. It connected to ".\app_data\aspnetdb.mdf". However it messed something up and the connection didn't work. If I create a project from scratch, it connects to its DB just fine, but not my upgraded project.
However, when I publish my web site, I need to use ODBC. So, my thought was to simply set up the system locally in a way that will make it easy to connect on the web site. I was told to add a system DSN to the "Microsoft ODBC Administrator". I tried to add a "SQL Server" and give it the database name but it failed to connect.
So, then I ran the SQL Server Configuration Manager and looked at the server properties and found this string under the advanced -> startup parameters.."-dc:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf;-ec:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG;-lc:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf"
My database is in an entirely different folder. The database it looks like it is servicing is a "master.mdf" database installed under the SQL server install folder. So, I figured that I found my problem. I just have to change this file to map to mine. I replaced these three strings with paths to my aspnetdb.mdf/ldf files, and created a LOG folder. Howwever, it wasn't able to connect to this database. It said something like "it doesn't exist or you don't have permission", even though I gave it the right path.
So, I'm at a loss for how to get my application to be able to use the ODBC interface to connect to its very own database on my local system.
What do I need to do? Please help!
You need to create a Windows Authentication account on the server for ASPNET with a password.
When an .aspx page loads and tries to access the server, it uses Windows Authentication unless you code the connectionstring to use SQL authentication.
After you create the ASPNET Account, make your connection string look like this:
connectionString="Data Source=ODC01;Initial Catalog=OEM;Integrated Security=True"
Adamus
|||Thanks you for the feedback. Unfortunately I'm still a bit confused. My problem is that I don't have a complete picture of how this is supposed to work.
Are you saying that I must set up a the server to use an account that uses Windows Authentication before I can attach it to my own MDB file? In other words, it will only connect to the default master.mdb file until I create an account?
Also, using "local" or "system" isn't good enough, I have to specify a user account even on my own personal computer running XP? I am the only one who uses this system, and there is no windows server running on the network. This is my home setup.
This is the map that I understand. There are 3 connections that must be made for this to work.
mydb.mdb --1 (get server to serve my DB)--> SQL Server express 2005 --2 (tell ODBC about my DB exposed by the server)--> ODBC --3 (using the connection string)--> Website.
Right now I beleive none of the 3 connections are working, and I feel like I need to get the step 1 done before I can establish and verify step 2 and then finally use the connection string in step 3.
Are you saying that I must create a Windows Authentication user account before step 1 will work? Does that simply meen that I create a user called "SQL Server" with minimal access on the computer and log into it whenever I want it to connect?
Is there a "complete idiots guide to establishing a SQL server 2005 connection from your web site to your database" book that I could buy?
|||I take it all back. You were right. Now I understand. I actually had the account set up correctly on the server side, but I wasn't logging in correctly.
Second, when I tried to attach the server to ODBC I was using my computer name alone, when I needed to use <computer_name>\SQLExpress.
Now I have to figure out the connection string. But I am finally over my biggest hurdle. Thanks!
Wednesday, March 28, 2012
HELP! VS .NET 2003 Server explorer
I have SQL Server 2k SP3, VS .NET 2003 Enterprise Architucture installed.
When I navigate to SQL server in Server explorer, everything is cool aside
from I can't New/Design a whatever TABLE thru the context menu but can
Create a brand-new DB.
I was told "can't find the resouce in the image file"(Error 1813)
Surfed a variety of materials in the NET already, but still have no ideas
about that.
Who could be of help ?
Thanks a lot!
--PaulIt looks to me like this is a problem with your VS.NET install rather than a
SQL Server issue. I've had no problems doing this with VS 2003.
You might try posting your question to a vsnet forum. The folks here tend
to use the SQL Server client tools. The only other suggestion I have is to
try reinstalling VS.NET.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"Paul" <paulwang000@.hotmail.com> wrote in message
news:OvSlzxO5EHA.3840@.tk2msftngp13.phx.gbl...
> HI, you guys!
> I have SQL Server 2k SP3, VS .NET 2003 Enterprise Architucture installed.
> When I navigate to SQL server in Server explorer, everything is cool aside
> from I can't New/Design a whatever TABLE thru the context menu but can
> Create a brand-new DB.
> I was told "can't find the resouce in the image file"(Error 1813)
> Surfed a variety of materials in the NET already, but still have no ideas
> about that.
> Who could be of help ?
> Thanks a lot!
> --Paul
HELP! VS .NET 2003 Server explorer
I have SQL Server 2k SP3, VS .NET 2003 Enterprise Architucture installed.
When I navigate to SQL server in Server explorer, everything is cool aside
from I can't New/Design a whatever TABLE thru the context menu but can
Create a brand-new DB.
I was told "can't find the resouce in the image file"(Error 1813)
Surfed a variety of materials in the NET already, but still have no ideas
about that.
Who could be of help ?
Thanks a lot!
--Paul
It looks to me like this is a problem with your VS.NET install rather than a
SQL Server issue. I've had no problems doing this with VS 2003.
You might try posting your question to a vsnet forum. The folks here tend
to use the SQL Server client tools. The only other suggestion I have is to
try reinstalling VS.NET.
Hope this helps.
Dan Guzman
SQL Server MVP
"Paul" <paulwang000@.hotmail.com> wrote in message
news:OvSlzxO5EHA.3840@.tk2msftngp13.phx.gbl...
> HI, you guys!
> I have SQL Server 2k SP3, VS .NET 2003 Enterprise Architucture installed.
> When I navigate to SQL server in Server explorer, everything is cool aside
> from I can't New/Design a whatever TABLE thru the context menu but can
> Create a brand-new DB.
> I was told "can't find the resouce in the image file"(Error 1813)
> Surfed a variety of materials in the NET already, but still have no ideas
> about that.
> Who could be of help ?
> Thanks a lot!
> --Paul
Wednesday, March 7, 2012
HELP! -> Stored procedure and ASP.NET
I've created a SP in MS SQL Server 2005 Express. In ASP.NET I want to use this SP, but somehow my data is not added...what am I doing wrong?
Also: how can I efficiently debug a SP?
Here's my SP:
setANSI_NULLSON
setQUOTED_IDENTIFIERON
go
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
ALTERPROCEDURE [dbo].[sp_InsertNewUser]
-- Add the parameters for the stored procedure here
(@.UserNamenchar(20),
@.pwdnchar(15),
@.Emailnchar(35),
@.IsMalebit,
@.BirthDatedatetime,
@.Countrysmallint,
@.PerfectSexnchar(1),
@.HasHTMLbit,
@.HasOffersbit,
@.HasNewsLetterbit
)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SETNOCOUNTON;
INSERTINTO dbo.tblMember(UserName,pwd,Email,IsMale,BirthDate,Country,PerfectSex,HasHTML,HasOffers,HasNewsLetter)
VALUES(@.UserName,@.pwd,@.Email,@.IsMale,@.BirthDate,@.Country,@.PerfectSex,@.HasHTML,@.HasOffers,@.HasNewsLetter)
END
Here's my code:
Dim BirthDate As DateTime = CDate(ddlMonth.SelectedValue + "-" & ddlDay.SelectedValue & "-" & ddlYear.SelectedValue)
Dim ActivationCode As String = Session.SessionID
Randomize()
Dim sPwd As String = CStr(Int((1000000 * Rnd()) + 100000))
Dim MyCommand As New SqlCommand("sp_InsertNewUser", DBConnection)
MyCommand.CommandType = Data.CommandType.StoredProcedure
MyCommand.Parameters.Add(New SqlParameter("@.UserName", tbUserName.Text))
MyCommand.Parameters.Add(New SqlParameter("@.pwd", sPwd))
MyCommand.Parameters.Add(New SqlParameter("@.Email", tbEmail.Text))
MyCommand.Parameters.Add(New SqlParameter("@.IsMale", ddlSex.SelectedValue))
MyCommand.Parameters.Add(New SqlParameter("@.BirthDate", BirthDate))
MyCommand.Parameters.Add(New SqlParameter("@.Country", ddlCountry.SelectedValue))
MyCommand.Parameters.Add(New SqlParameter("@.PerfectSex", ddlPerfectSex.SelectedValue))
MyCommand.Parameters.Add(New SqlParameter("@.HasHTML", ddlEmailSupport.SelectedValue))
MyCommand.Parameters.Add(New SqlParameter("@.HasOffers", cbProdServices.Checked))
MyCommand.Parameters.Add(New SqlParameter("@.HasNewsLetter", True))
Im sure its running, as I stepped through the code.
I execute the command with ExecuteNonQuery.
the db connection opens and the statement appears to be executed.
I've put everything in a try catch statement but no errors occur! I've checked the field definitions and they are good as well...
but I take it you dont see any syntax errors?
And do you know how I can debug a SP?
Thanks!
Peter Smith wrote:
Im sure its running, as I stepped through the code.
I execute the command with ExecuteNonQuery.
the db connection opens and the statement appears to be executed.
I guess we'll have to trust you on this one.
Peter Smith wrote:
but I take it you dont see any syntax errors?
I don't see any obvious syntax errors. Have you tried running your stored procedure from Query Analyzer?
Also, I guess you are using ASP.NET 1.1? The syntax you are using for parameters has been deprecated for ASP.NET 2.0 (you would now use the AddWithValue method). Personally I would use the constructor that specifies the data type, e.g.:
MyCommand.Parameters.Add(New SqlParameter("@.UserName", SqlDbType.NChar,20)).Value = tbUserName.Text
or, more simply:
MyCommand.Parameters.Add("@.UserName", SqlDbType.NChar,20).Value = tbUserName.Text
Peter Smith wrote:
And do you know how I can debug a SP?
Which IDE are you using? Visual Studio 2003? I know this includes a stored procedure debugging capability from within Server Explorer but I have not really used it myself (seeHOW TO: Debug Stored Procedures in Visual Studio .NET). I know there is a Transact-SQL debugger available from within Query Analyzer (seeStarting the Debugger in BOL) and I've only played around with that a bit. Unfortunately I debug stored procedures using old-fashioned manual methods: running the stored procedure in Query Analyzer, examining the results, tweaking the code if there are errors/unexpected results. I don't use a formal debugging tool.|||
I dont know how to use that quote thing ;)
"Also, I guess you are using ASP.NET 1.1? The syntax you are using for parameters has been deprecated for ASP.NET 2.0 (you would now use the AddWithValue method). Personally I would use the constructor that specifies the data type, e.g.:
MyCommand.Parameters.Add(New SqlParameter("@.UserName", SqlDbType.NChar,20)).Value = tbUserName.Text
or, more simply:
MyCommand.Parameters.Add("@.UserName", SqlDbType.NChar,20).Value = tbUserName.Text"
actually I use ASP.NET 2.0, I just didnt know I could also do it otherwise.
I will now use that simple constructor you provided, although I dont really see the purpose of specifying the datatype...is that for better debugging, or faster code or...I dont know...
I use Visual Web Developer 2005 Express and SQL Server 2005 Express...can I then still use the tools (query analyzer and server explorer) you mentioned?
Thanks!
Monday, February 27, 2012
Help!
I have beening trying to build a report with 2 parameters. When I run it
under VS.net preview, it all went well, but after I deploy it to the
server, I got
the message as following: **Reporting Services Error--The path of the item ''
is not valid. The full path must be less than 260 characters long, must start
with slash; other restrictions apply. Check the documentation for complete
set of restrictions. (rsInvalidItemPath) Get Online Help **
what went wrong, please help.
the URL for the report as following:
http://localhost/ReportServer?%2fMyReports%2fORSchedule&rs:Command=Render
TIAIT sounds like the URL of the report is too long, even though the URL you
post isn't that long...
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"wd1153" <wd1153@.discussions.microsoft.com> wrote in message
news:72710497-4078-44FE-94D7-307B737B15EF@.microsoft.com...
> Hi
> I have beening trying to build a report with 2 parameters. When I run it
> under VS.net preview, it all went well, but after I deploy it to the
> server, I got
> the message as following: **Reporting Services Error--The path of the item
> ''
> is not valid. The full path must be less than 260 characters long, must
> start
> with slash; other restrictions apply. Check the documentation for complete
> set of restrictions. (rsInvalidItemPath) Get Online Help **
> what went wrong, please help.
> the URL for the report as following:
> http://localhost/ReportServer?%2fMyReports%2fORSchedule&rs:Command=Render
> TIA
>
>|||how might be the solution? thanks
"Wayne Snyder" wrote:
> IT sounds like the URL of the report is too long, even though the URL you
> post isn't that long...
> --
> Wayne Snyder, MCDBA, SQL Server MVP
> Mariner, Charlotte, NC
> www.mariner-usa.com
> (Please respond only to the newsgroups.)
> I support the Professional Association of SQL Server (PASS) and it's
> community of SQL Server professionals.
> www.sqlpass.org
> "wd1153" <wd1153@.discussions.microsoft.com> wrote in message
> news:72710497-4078-44FE-94D7-307B737B15EF@.microsoft.com...
> > Hi
> >
> > I have beening trying to build a report with 2 parameters. When I run it
> > under VS.net preview, it all went well, but after I deploy it to the
> > server, I got
> > the message as following: **Reporting Services Error--The path of the item
> > ''
> > is not valid. The full path must be less than 260 characters long, must
> > start
> > with slash; other restrictions apply. Check the documentation for complete
> > set of restrictions. (rsInvalidItemPath) Get Online Help **
> > what went wrong, please help.
> >
> > the URL for the report as following:
> >
> > http://localhost/ReportServer?%2fMyReports%2fORSchedule&rs:Command=Render
> >
> > TIA
> >
> >
> >
>
>|||Maybe the parameter values are too long?
"wd1153" wrote:
> how might be the solution? thanks
> "Wayne Snyder" wrote:
> > IT sounds like the URL of the report is too long, even though the URL you
> > post isn't that long...
> >
> > --
> > Wayne Snyder, MCDBA, SQL Server MVP
> > Mariner, Charlotte, NC
> > www.mariner-usa.com
> > (Please respond only to the newsgroups.)
> >
> > I support the Professional Association of SQL Server (PASS) and it's
> > community of SQL Server professionals.
> > www.sqlpass.org
> >
> > "wd1153" <wd1153@.discussions.microsoft.com> wrote in message
> > news:72710497-4078-44FE-94D7-307B737B15EF@.microsoft.com...
> > > Hi
> > >
> > > I have beening trying to build a report with 2 parameters. When I run it
> > > under VS.net preview, it all went well, but after I deploy it to the
> > > server, I got
> > > the message as following: **Reporting Services Error--The path of the item
> > > ''
> > > is not valid. The full path must be less than 260 characters long, must
> > > start
> > > with slash; other restrictions apply. Check the documentation for complete
> > > set of restrictions. (rsInvalidItemPath) Get Online Help **
> > > what went wrong, please help.
> > >
> > > the URL for the report as following:
> > >
> > > http://localhost/ReportServer?%2fMyReports%2fORSchedule&rs:Command=Render
> > >
> > > TIA
> > >
> > >
> > >
> >
> >
> >|||I don't think the length of it is an issue. I have many that are longer that
what you post below. How are you trying to run the report? From Report
Manager? Or from you own app, using URL integration?
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"wd1153" <wd1153@.discussions.microsoft.com> wrote in message
news:C1FDEE83-1A0B-4259-8BF6-9802039A66D1@.microsoft.com...
> how might be the solution? thanks
> "Wayne Snyder" wrote:
>> IT sounds like the URL of the report is too long, even though the URL you
>> post isn't that long...
>> --
>> Wayne Snyder, MCDBA, SQL Server MVP
>> Mariner, Charlotte, NC
>> www.mariner-usa.com
>> (Please respond only to the newsgroups.)
>> I support the Professional Association of SQL Server (PASS) and it's
>> community of SQL Server professionals.
>> www.sqlpass.org
>> "wd1153" <wd1153@.discussions.microsoft.com> wrote in message
>> news:72710497-4078-44FE-94D7-307B737B15EF@.microsoft.com...
>> > Hi
>> >
>> > I have beening trying to build a report with 2 parameters. When I run
>> > it
>> > under VS.net preview, it all went well, but after I deploy it to the
>> > server, I got
>> > the message as following: **Reporting Services Error--The path of the
>> > item
>> > ''
>> > is not valid. The full path must be less than 260 characters long, must
>> > start
>> > with slash; other restrictions apply. Check the documentation for
>> > complete
>> > set of restrictions. (rsInvalidItemPath) Get Online Help **
>> > what went wrong, please help.
>> >
>> > the URL for the report as following:
>> >
>> > http://localhost/ReportServer?%2fMyReports%2fORSchedule&rs:Command=Render
>> >
>> > TIA
>> >
>> >
>> >
>>|||Thank for replay
I am going to run this at report manager. The report itself should not be a
problem, right? because it runs fine in Visual Studio?
"Bruce L-C [MVP]" wrote:
> I don't think the length of it is an issue. I have many that are longer that
> what you post below. How are you trying to run the report? From Report
> Manager? Or from you own app, using URL integration?
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "wd1153" <wd1153@.discussions.microsoft.com> wrote in message
> news:C1FDEE83-1A0B-4259-8BF6-9802039A66D1@.microsoft.com...
> > how might be the solution? thanks
> >
> > "Wayne Snyder" wrote:
> >
> >> IT sounds like the URL of the report is too long, even though the URL you
> >> post isn't that long...
> >>
> >> --
> >> Wayne Snyder, MCDBA, SQL Server MVP
> >> Mariner, Charlotte, NC
> >> www.mariner-usa.com
> >> (Please respond only to the newsgroups.)
> >>
> >> I support the Professional Association of SQL Server (PASS) and it's
> >> community of SQL Server professionals.
> >> www.sqlpass.org
> >>
> >> "wd1153" <wd1153@.discussions.microsoft.com> wrote in message
> >> news:72710497-4078-44FE-94D7-307B737B15EF@.microsoft.com...
> >> > Hi
> >> >
> >> > I have beening trying to build a report with 2 parameters. When I run
> >> > it
> >> > under VS.net preview, it all went well, but after I deploy it to the
> >> > server, I got
> >> > the message as following: **Reporting Services Error--The path of the
> >> > item
> >> > ''
> >> > is not valid. The full path must be less than 260 characters long, must
> >> > start
> >> > with slash; other restrictions apply. Check the documentation for
> >> > complete
> >> > set of restrictions. (rsInvalidItemPath) Get Online Help **
> >> > what went wrong, please help.
> >> >
> >> > the URL for the report as following:
> >> >
> >> > http://localhost/ReportServer?%2fMyReports%2fORSchedule&rs:Command=Render
> >> >
> >> > TIA
> >> >
> >> >
> >> >
> >>
> >>
> >>
>
>|||Thanks for replay. But the parameters are only a couple of integers, and it
runs fine in VS .net.
"Mary Bray [SQL Server MVP]" wrote:
> Maybe the parameter values are too long?
> "wd1153" wrote:
> > how might be the solution? thanks
> >
> > "Wayne Snyder" wrote:
> >
> > > IT sounds like the URL of the report is too long, even though the URL you
> > > post isn't that long...
> > >
> > > --
> > > Wayne Snyder, MCDBA, SQL Server MVP
> > > Mariner, Charlotte, NC
> > > www.mariner-usa.com
> > > (Please respond only to the newsgroups.)
> > >
> > > I support the Professional Association of SQL Server (PASS) and it's
> > > community of SQL Server professionals.
> > > www.sqlpass.org
> > >
> > > "wd1153" <wd1153@.discussions.microsoft.com> wrote in message
> > > news:72710497-4078-44FE-94D7-307B737B15EF@.microsoft.com...
> > > > Hi
> > > >
> > > > I have beening trying to build a report with 2 parameters. When I run it
> > > > under VS.net preview, it all went well, but after I deploy it to the
> > > > server, I got
> > > > the message as following: **Reporting Services Error--The path of the item
> > > > ''
> > > > is not valid. The full path must be less than 260 characters long, must
> > > > start
> > > > with slash; other restrictions apply. Check the documentation for complete
> > > > set of restrictions. (rsInvalidItemPath) Get Online Help **
> > > > what went wrong, please help.
> > > >
> > > > the URL for the report as following:
> > > >
> > > > http://localhost/ReportServer?%2fMyReports%2fORSchedule&rs:Command=Render
> > > >
> > > > TIA
> > > >
> > > >
> > > >
> > >
> > >
> > >|||I know the URL which you show is not too long, but the error seemed to
indicate it...
I wonder if there is an image or other item in the report, which may have a
URL which is longer than 260 chars... I do think that the way images are
referenced is different in the dev env than in prod... check to see if
there are any long object references...
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"wd1153" <wd1153@.discussions.microsoft.com> wrote in message
news:72710497-4078-44FE-94D7-307B737B15EF@.microsoft.com...
> Hi
> I have beening trying to build a report with 2 parameters. When I run it
> under VS.net preview, it all went well, but after I deploy it to the
> server, I got
> the message as following: **Reporting Services Error--The path of the item
> ''
> is not valid. The full path must be less than 260 characters long, must
> start
> with slash; other restrictions apply. Check the documentation for complete
> set of restrictions. (rsInvalidItemPath) Get Online Help **
> what went wrong, please help.
> the URL for the report as following:
> http://localhost/ReportServer?%2fMyReports%2fORSchedule&rs:Command=Render
> TIA
>
>|||Good idea. This will show up from Report Manager. Right now he has only
tried it from his web app, not from Report Manager.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Wayne Snyder" <wayne.nospam.snyder@.mariner-usa.com> wrote in message
news:OINwq$QZFHA.3864@.TK2MSFTNGP10.phx.gbl...
>I know the URL which you show is not too long, but the error seemed to
>indicate it...
> I wonder if there is an image or other item in the report, which may have
> a URL which is longer than 260 chars... I do think that the way images are
> referenced is different in the dev env than in prod... check to see if
> there are any long object references...
> --
> Wayne Snyder, MCDBA, SQL Server MVP
> Mariner, Charlotte, NC
> www.mariner-usa.com
> (Please respond only to the newsgroups.)
> I support the Professional Association of SQL Server (PASS) and it's
> community of SQL Server professionals.
> www.sqlpass.org
> "wd1153" <wd1153@.discussions.microsoft.com> wrote in message
> news:72710497-4078-44FE-94D7-307B737B15EF@.microsoft.com...
>> Hi
>> I have beening trying to build a report with 2 parameters. When I run it
>> under VS.net preview, it all went well, but after I deploy it to the
>> server, I got
>> the message as following: **Reporting Services Error--The path of the
>> item ''
>> is not valid. The full path must be less than 260 characters long, must
>> start
>> with slash; other restrictions apply. Check the documentation for
>> complete
>> set of restrictions. (rsInvalidItemPath) Get Online Help **
>> what went wrong, please help.
>> the URL for the report as following:
>> http://localhost/ReportServer?%2fMyReports%2fORSchedule&rs:Command=Render
>> TIA
>>
>
Sunday, February 19, 2012
Help with using integrated security
accross the problem where if the app is hosted on a server and the backend
SQL database is hosted on another server, I cannot use integreated security
to retrieve data from the sql server (unless deligation is turned on...).
Now, our Report server is on a third machine. Can my data source(s) on the
report server use Integrated Authentication? A brief test failed, saying
cannot authorize NT/Anonymous but I may have set something up incorrectly.
Any suggestions?
BenThere is a double hop issue that you might be coming up against. You have to
be using Kerberos to be getting around this. Search the MS site for the
phrase double hop and you should find info on it and can see if it matches
your problem.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Ben" <ben_1_ AT hotmail DOT com> wrote in message
news:B7DDBD38-A4FD-4EF2-AAA7-95D0B0478FDD@.microsoft.com...
>I am building a reporting aspect of my .NET web app, and I have already
>come
> accross the problem where if the app is hosted on a server and the backend
> SQL database is hosted on another server, I cannot use integreated
> security
> to retrieve data from the sql server (unless deligation is turned on...).
> Now, our Report server is on a third machine. Can my data source(s) on
> the
> report server use Integrated Authentication? A brief test failed, saying
> cannot authorize NT/Anonymous but I may have set something up incorrectly.
> Any suggestions?
> Ben|||Bruce
Thank you for the reply. I haven't done the search but I guess its the same
problem I'm having with the asp.net app im building.
Its funny, best practises says your db, your app and report server should
all be separate and integrated security used, but this setup doesnt naitively
work with integrated security.
thanks for the help.
"Bruce L-C [MVP]" wrote:
> There is a double hop issue that you might be coming up against. You have to
> be using Kerberos to be getting around this. Search the MS site for the
> phrase double hop and you should find info on it and can see if it matches
> your problem.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Ben" <ben_1_ AT hotmail DOT com> wrote in message
> news:B7DDBD38-A4FD-4EF2-AAA7-95D0B0478FDD@.microsoft.com...
> >I am building a reporting aspect of my .NET web app, and I have already
> >come
> > accross the problem where if the app is hosted on a server and the backend
> > SQL database is hosted on another server, I cannot use integreated
> > security
> > to retrieve data from the sql server (unless deligation is turned on...).
> > Now, our Report server is on a third machine. Can my data source(s) on
> > the
> > report server use Integrated Authentication? A brief test failed, saying
> > cannot authorize NT/Anonymous but I may have set something up incorrectly.
> >
> > Any suggestions?
> > Ben
>
>|||You can use delegation, a feature built into 2K3 and AD. See this
link:
http://technet2.microsoft.com/WindowsServer/en/Library/c312ba01-318f-46ca-990e-a597f3c294eb1033.mspx
Bruce L-C [MVP] wrote:
> There is a double hop issue that you might be coming up against. You have to
> be using Kerberos to be getting around this. Search the MS site for the
> phrase double hop and you should find info on it and can see if it matches
> your problem.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Ben" <ben_1_ AT hotmail DOT com> wrote in message
> news:B7DDBD38-A4FD-4EF2-AAA7-95D0B0478FDD@.microsoft.com...
> >I am building a reporting aspect of my .NET web app, and I have already
> >come
> > accross the problem where if the app is hosted on a server and the backend
> > SQL database is hosted on another server, I cannot use integreated
> > security
> > to retrieve data from the sql server (unless deligation is turned on...).
> > Now, our Report server is on a third machine. Can my data source(s) on
> > the
> > report server use Integrated Authentication? A brief test failed, saying
> > cannot authorize NT/Anonymous but I may have set something up incorrectly.
> >
> > Any suggestions?
> > Ben