Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error in SqlDataProviderError in SqlDataProvider
Previous
 
Next
New Post
12/7/2008 5:06 PM
 

I keep getting an error in my .SqlDataProvider files. I also get the same error if I try to run the file by loading it through the "SQL" menu item under host.

The problem appears to occur near the word "GO" in my scripts.

I am using DNN 4.5.3 and have I saved the .SqlDataProvider files as text with UTF-8 encoding. I am using SQL Server 2005 (Free/Express Edition)

I can run individual lines of the script if I strip out the "GO" keywords and the script runs fine under SQL Server Management Studio.

I'm baffled. Can someone give me a clue as to what is going on.

As an example:

THIS DOES NOT RUN:

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}MingHsueh_AddInstitution]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
 drop procedure {databaseOwner}[{objectQualifier}MingHsueh_AddInstitution]
GO

I get There is an error in your query!

However this runs fine.

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}MingHsueh_AddInstitution]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
 drop procedure {databaseOwner}[{objectQualifier}MingHsueh_AddInstitution]

Thanks to anyone who can help.

 

 
New Post
12/8/2008 3:22 AM
 

are you aware, that scripts with "Go" are only run properly in Host ::SQL module, if you are tickling the "run as script" checkbox?


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/5/2009 1:33 PM
 

Just to document why I was getting the error so in case it comes up again.

For some reason I was typing in "GO <Hard Return>" instead of "GO<Hard Return>", note the space between the GO and the <Hard Return>. Believe it or not, it was the space that was causing my error to appear.

Once I removed that space (and believe me seeing a blank space is not an easy task). The scripts worked fine. Strange but true. But thought I'd post my solution as an FYI.

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error in SqlDataProviderError in SqlDataProvider


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out