NEWBY: SQL Roadblock In Visual Web Dev 2008
Apr 20, 2008
This has all the earmarks of a procedural error on my part. I have it occuring on two computers with the same sequence and exceptions and with clean databases. Note: The code is from Doug Lowe's ASP.NET 2.0 Everyday Apps For Dummies 2006 loaded from the CD. The database is generate from a script provided by the author. I will paste it in at the end.
View 1 Replies
ADVERTISEMENT
Dec 23, 2007
when I try to make a sqldatasource with visual studio 2008 and SQLServer 2008 . I found that there are a message that the visual studio 2008 can support only SQLServer 2005 and SQLServer 2000how to make my visual studio 2008 support SQLServer 2008
View 1 Replies
View Related
Jun 15, 2008
This should be simple - using the server explorer I select the server and then the database that's running on that server. It lets me test the database connection at that point - which does work.
Then when I try to add the database it says -
Could not load file or assembly Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0 ... The system cannot find the file specified.
So far as I can see the specified file is Microsoft.SqlServer.Smo.dll which has a current version of 9.0.242.0 and sits within the SQL Server files. That is also the version number held in the registry.
The version of SQL is 2005. The database was created using Create Database through VS 2008, .net 3.5.
Also, I installed VS 2008 first, which puts in SQL Compact. And then tried installing SQL 2005 Development which still gave the same error message. So I uninstalled SQL Compact and SQL 2005. And then did a clean install of SQL 2005 Developer. Does VS 2008 cope with this?
Is there a version 10 of SMO? Or is there somewhere within SQL or Visual Studio where it could be holding a version number of 10 for the dll? Or any other ideas?
Thanks Mike
View 2 Replies
View Related
Nov 30, 2007
Hello. I have a little problem .
I have SQL Server Express 2005 installed on my machine. As well as SQL Server Management Studio. For some practice, I also installed the AdventureWorks sample database and attached it to the Server. When I open SQL Server Management Studio it's right there, in the Object Explorer, sitting nicely along with the master database and so on.
Now, I have recently installed Visual C# Express 2008, in order to explore this exiting new thing called LINQ (Language Integrated Query) . To do so, I created a new Project (say, WPF or Console application), and once the project is up and running it would be nice to attach some data to it so we can query that data and learn about LINQ.
There is a problem, however. On the main menu, I click on Data-Add new data source, choose Database, click on New Connection and the Add Connection window comes up. As a data source, I specify Microsoft SQL Server Database file.
For a database file name, I navigate to MSSQL.1/Data and in that folder, there it is, the AdventureWorks file. Now, here is the rub. When I try to attach this file, I get a window telling me that I don't have permission to open this file! Contact the file owner or administrator! How about that?!
Can anyone help? It would be very much appreciated!
Thanks.
View 1 Replies
View Related
Sep 1, 2007
I have recently installed Visual Studio 2008 Beta 2 on a development machine that was running SQL Server 2005 SP2a without any issues. Not I find that I can no longer run any of my SSIS packages and I keep getting the following error:
Retrieving the COM class factory for component with CLSID {7816B7A3-CD60-4539-BD38-C35AFC61F200} failed due to the following error: 80040154
Per other posts, I have reinstalled MSXML 3.0 to no avail and I have looked for every SQL Server patch I can find - I appear to have all of the latest patches for SQL Server.
Can somebody please help?
View 6 Replies
View Related
Sep 14, 2007
Hi,
I have a desktop application that uses an Access DB.
Now i have converted it to Visual Studio 2008 and tried the SQL CE Edition.
I wrote all the methods, create the database and the tables on the fly and seems to work really fine.
The database is 20MB big, but the performance is vey bad.
I mean with Access it's very fast, you actually don't see how slow it is, and with the SQL CE now,
it takes 7 seconds !!!! for a few access instead of under 1 second with Access.
I can't imagine that this is normal, there must be something i am really missing in my code.
Looks something like this:
Code Snippet
SqlCeEngine engine = new SqlCeEngine("Data Source = URANO.sdf");
engine.CreateDatabase();
engine.Dispose();
// Verbindung öffnen
sqlConnection = new SqlCeConnection("Data Source = URANO.sdf");
sqlConnection.Open();
// creating the tables here with data
sqlCommand = new SqlCeCommand("SELECT ID FROM Laender WHERE Name=@Name", sqlConnection);
sqlCommand.Parameters.Add("@Name", SqlDbType.NVarChar, 30);
sqlCommand.Parameters[0].Value = land;
sqlDataAdapter = new SqlCeDataAdapter(sqlCommand);
sqlDataSet = new DataSet();
sqlDataAdapter.Fill(sqlDataSet, "Laender");
landID = "" + (((int)sqlDataSet.Tables["Laender"].Rows[0][0]) + 1);
this takes 1 - 2 seconds
btw: the whole class is static and the variables also are static.
Would it be better to load all the database tables into datasets, and only work with the datasets in memory ?
Well i thought that the SQL CE Engine, would load the database into memory and be just fast.
I mean we have 2 GB of memory or 1 the most of us, 20MB isn't that much.
Thanks !
Nick
View 9 Replies
View Related
Jan 24, 2008
Can I author report projects in VS Studio 2008 that I deploy to a RS2005 Report Server?
Our development staff has upgraded to VS2008 for our DLLs, Web sites, and console apps... no problem there whatsoever. But we have SQL2005... obviously, since SQL2008 appears to be along way off.
So, it seems like an obvious question... although I'm dreading the response. My experience with getting RS2005 installed and configured correctly was simply horific. In fact, so bad, I'm considering dumping RS altogether and going with a more reliable 3rd party tool... MS has truly done everything in the power to botch this one or so it would seem.
View 1 Replies
View Related
Sep 1, 2007
I installed Visual Studio 2008 Beta 2 Professional yesterday and now none of my SSIS packages will function. Each time I attempt to run the transform, I obtain the folloiwing error:
Retrieving the COM class factory for component with CLSID {7816B7A3-CD60-4539-BD38-C35AFC61F200} failed due to the following error: 80040154.
I have tried to apply every patch I can find for SQL Server 2005 - inclduing both the SP2 and SP2a patches. I have tried reinstalling MSXML 3.0 - nothing seems to work.
Can somebody please help?
Thank you!
View 5 Replies
View Related
Mar 27, 2008
Hi!
I have trouble using Visual C # 2008 EE and SQL Server 2005 EE. Together with SQL Server on this computer, I successfully using VC # 2005 Prof and Web Developer 2008 EE. A VC # 2008 EE, I can not add the new connection to SQL Server 2005 through SqlClient in Database Explorer .. simply because the Change Data Source dialog does not give me this opportunity, offering a choice only MS Access, MS SQL Server Compact 3.5 and MS SQL Server Database File. I note once again that, for example, the Web Developer everything works fine.
(Excuse me, I use translate.google.com)
View 1 Replies
View Related
Mar 20, 2008
Dear all,
I am trying to integrate Sql Clr with Visual studio 2005, but i am getting the following error when i try to deploy the solution:
CREATE ASSEMBLY for assembly 'SQLCLRIntegrationDemo' failed because assembly
'SQLCLRIntegrationDemo' is not authorized for PERMISSION_SET = EXTERNAL_ACCESS.
The assembly is authorized when either of the following is true: the database owner (DBO)
has EXTERNAL ACCESS ASSEMBLY permission and the database has the TRUSTWORTHY database
property on; or the assembly is signed with a certificate or an asymmetric key that has
a corresponding login with EXTERNAL ACCESS ASSEMBLY permission. If you have restored or
attached this database, make sure the database owner is mapped to the correct login on
this server. If not, use sp_changedbowner to fix the problem. SQLCLRIntegrationDemo
I have even set the Permission to External in the Project --> Properties --> Database tab.
But still i am getting the above solution while deploying the solution.
One of the blogs suggested that the checkbox beside 'Trustworthy Database' should be checked. But i dont see any checkbase in the database tab of the Project properties.
Any help would be appreciated.
Thanks in advance.
Regards,
Sunny.
View 1 Replies
View Related
Dec 5, 2007
I can't open solutions created in Visual Studio 2005 in Visual Studio 2008
---------------------------
Microsoft Visual Studio
---------------------------
'TransformFoxData.dtproj' cannot be opened because its project type (.dtproj) is not supported by this version of Visual Studio.
To open it, please use a version that supports this type of project.
---------------------------
OK Help
---------------------------
Does that mean it is a requirement to have SQL Server 2008 installed ( which I don't want ) to make it work in Visual Studion 2008.
I just uninstalled VS 2005.
View 7 Replies
View Related
Nov 21, 2007
How do I install the report designer in Visual Studio 2008?
Edit: I mean, how do I install the SQLRS 2005 Report Designer in Visual Studio 2008?
View 24 Replies
View Related
Dec 4, 2007
I am using VS2008 and trying to add an Image to a report (RDLC).
The documentation suggests the properties window for the Image field will have a Source and a Value field.
I cannot see them.
Elswhere, the documentation talks about an Image Wizard.
I cannot find that either.
I have added an Image to the Report's Embedded Images list.
How do I add an image to my RDLC?
View 3 Replies
View Related
Apr 30, 2008
someone please tell me how
im using primavera V5.0 (www.primavera.com) and i want to export the data from the .net to primavera and versa versa
please tell me soon
View 3 Replies
View Related
Feb 12, 2008
I already have SQL Server Express 2005 installed from having Visual Studio 2005 installed. How can I tell if it is the SP2 edition? It probably isn't, so my next question is what is going to happen when I install Visual Studio 2008, which I will be doing in a day or two...will the install overwrite SQL Server Express 2005 with the latest edition to SP2, assuming that the latest edition will be on the Visual Studio 2008 installation discs? I have not yet used SQL Server Express, so my knowledge level with it is very weak. What I'm hoping to find out with this question is what I'll have (with respect to SQL Server Express) and the install of Visual Studio 2008. I can't even figure out how to tell what version of SQL Server Express that I now have.
View 9 Replies
View Related
Sep 10, 2007
I successfully installed .NET framework v 3.5 and VWD 2008 on a new Vista laptop. When I want to add a Sql Server database to a website, errors tell me to install SS 2005 Express. MSDN SS 2005 Express download tells me I MUST first install .NET framework v 2.0 before SS 2005. When I try to install framework v 2.0, I'm sent to v. 3.5 and no way to download SS 2005.
How does one install a express sql server to run with Visual Web Developer 2008?
View 4 Replies
View Related
Apr 21, 2008
Hi all,
I have installed the The Microsoft Report Viewer 2008 Redistributable Package and I add the report viewer component to my toolbox list.
while viewing the report viewer in my solution ...i was getting the error as given below..
Note:
InnerException = {"The report definition is not valid.
Details: The report definition has an invalid target namespace
'http://schemas.microsoft.com
/sqlserver/reporting/2007/01/reportdefinition' which cannot be upgraded."}
Can I know the solution for the error..
Thanks,
Ashok.
View 1 Replies
View Related
Jan 27, 2008
Hi All-
It appears Microsoft has bundled SQL Server Compact Edition 3.5 SDK for C/C++ development as part of Visual Studio 2008 and is NOT available for download as an independent entity (as 3.1 SDK is).
Is there a work around?
Thanks.
View 3 Replies
View Related
Mar 28, 2008
I have an application written with Visual Basic Express 2008, which has a Sql Server Express Compact database incorporated into the application. I've been trying to follow the suggestions listed on several threads on how to backup up my database and have not gotten very far. The following code seems to be in most threads.
Dim dbstring = "Data Source=.SQLExpress;Integrated Security=true;User Instance=true;AttachDBFilename=|DataDirectory|ImmuLogDataBase.sdf"
Dim sqlconn As New SqlClient.SqlConnection(dbstring)
sqlconn.Open()
When run, this code returns the following error at the sqlconn.Open() command.
An attempt to attach an auto-named database for file G:ImmuLogImmuLoginDebugImmuLogDataBase.sdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
My solution is saved on a flash drive which I take between home and work. I'm hoping that that isn't the issue. I believe that Visual Basic loads the database when it starts and it is already open when this code is run. Is there a way to access this open database and run a backup procedure on it from within VB express 2008?
I'm new to this and self taught so explain everything in detail. Thanks for your help.
Bruce
View 3 Replies
View Related
Feb 8, 2008
I am thinking about installing dvd microsoft office ultimate 2007 visio
before I install sql server 2005 sp2. I already have visual studio 2008
rtm pro professional vl on my vista computer. Will I have any issues
doing this? Thank you
View 6 Replies
View Related
May 22, 2008
I've followed the steps in http://www.sqlteam.com/article/debugging-stored-procedures-in-visual-studio-2005 & in the MSDN for configuring and setting up debugging SQL 2005 stored procedures in VS 2008 (seems to be the same as in VS 2005). Everything works fine until I Step Into the Stored Procedure. Everything says that a yellow arrow will appear on the left and I can start going line by line. I never get the yellow arrow.
If I set a breakpoint, it is automatically disabled. The pop-up warning says, "The breakpoint will not currently be hit. Unable to bind SQL breakpoint at this time. Object containing the breakpoint not loaded." I can't find anything about this message or problem on Microsoft's site or on the web. Any assistance is appreciated.
P.S.
I'm running VS 2008 Professional Edition Version 9.0.2.1022.8 RTM
View 7 Replies
View Related
Apr 22, 2008
I have an application built using VS 2008 (3.5 fx). I build a series of
reports (using VS 2005 (sigh)) and am now tryiing to render them using a
Windows form and the ReportViewer control in the VS 2008 app. However I
always get the error message "The source of the report definition has not
been specified" when I execute the line
m_reportViewer.RefreshReport();
When I try to view the very same report in a VS 2005 app it renders without
error. I can also view the report using Report Manager and preview it in the
VS 2005 app I use to build it. Any suggestions?
Thx
Helen
--
Helen Warn, PhD
Agile Software Inc.
www.agile-soft.com
View 1 Replies
View Related
Mar 3, 2008
My home machine has sql 2005 and Visual Studio 2005 installed. I uninstalled VS 2005 (RTM) and installed VS 2008 (RTM) in its place. I then found that the SSIS templates were missing. Lesson: don't uninstall VS 2005 if you want to use SSIS 2005!
1. Is there any "workaround" to this issue?
2. (If the answer to 1 is "No") I will install VS 2008 side-by-side with VS 2005 on the same box. When the SSIS issue is finally resolved, can I uninstall VS 2005 without doing damage to the VS 2008 install?
TIA,
Barkingdog
View 17 Replies
View Related
Mar 16, 2008
I receive the following error when trying to add a local database to my project.
"The data provider required to connect to the local data file could not found. The file will be added to the project but the typed DataSet associated with the file will not be generated."
I've reinstalled VS2k8, SQL Compact 3.1 and SQL Compact 3.5 on my machine and still receive the error.
Does anyone have any suggestions? I saw another similar thread about this in the VB2k8Express forum, but there were no helpful answers there. (for the curious: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2769854&SiteID=1)
I haven't used the SSCE before and so it's possible I've mistakenly omitted some required items.
Any help is greatly appreciated.
View 4 Replies
View Related
Mar 17, 2008
I have a couple of questions which is better for commercial development
the standard edition sql or sql express edition?
Does the express edition 2005 in visual studio professional come with
advanced services or do you have install sp2?
Has anyone installed sql 2005 reporting services on vista ultimate
is there anything I should know besides the article How to install
sql reporting services on a windows vista computer? Thanks
I have sql express on my visual studio 2008, however I have
not installed it. Will this be a problem if I install standard ediion?
View 3 Replies
View Related
Feb 15, 2008
I use visual studio 2008 to design a database application.
I am in the peak of finalising the program but I have a snag with updating data in the database.
I could create new rows, add rows and new rows of data to the table but whenever i try to change the data in a cell
it returns an error "Update requires a valid UpdateCommand when passed DataRow collection with modified rows."
I have tried all possible solutions, using table adapter, commands etc but wont get it.
This situation also applies to changes made directly on the data grid and also when using the binding navigator buttons
to edit and save data.
please help me.
Barbara Grayson
View 1 Replies
View Related
May 28, 2008
I would occasionally get the error below when trying to access a database in my project/App_Data folder using Visual Web Developer Express 2008.
I would re-boot and the problem would go away.
I now have the problem all the time and am unable to access my database file in the App_Data folder nor ASPNETDB.mdf.
I am not trying to access a remote database. I have not knowingly changed any settings.
Has anyone seen this problem?
Can anyone help?
Thanks,
Charles Smith
ERROR MESSAGE:
€¦ under the default settings SQL Server doesn't allow remote connections. (provider: SQL Network Interfaces, error 26 €“ Error locating Server/Instance specified)
View 1 Replies
View Related
Nov 20, 2007
Hello:
I have a framework 2.0 winforms application that uses the data mining viewer controls. I upgraded the project to visual studio 2008 and compiled it under framework 2.0. It compiles fine, but when the form with the TimeSeriesViewer control loads, the application throws the following exception:
System.Reflection.TargetInvocationException was unhandled by user code
Message="Unable to get the window handle for the 'AxChartSpace' control. Windowless ActiveX controls are not supported."
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.AxHost.InPlaceActivate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at Microsoft.AnalysisServices.Viewers.TimeSeriesViewer.InitializeComponent()
at Microsoft.AnalysisServices.Viewers.TimeSeriesViewer..ctor()
at RMS2.UI.DecisionSupport.ShowModel(String modelName, Int32 tabIndex) in C:UsersDougDocumentsRmsIIRmsIIRMS2.UIDecisionSupport.cs:line 72
at RMS2.UI.DecisionSupport.DecisionSupport_Load(Object sender, EventArgs e) in C:UsersDougDocumentsRmsIIRmsIIRMS2.UIDecisionSupport.cs:line 42
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException: System.AccessViolationException
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.UnsafeNativeMethods.IOleObject.DoVerb(Int32 iVerb, IntPtr lpmsg, IOleClientSite pActiveSite, Int32 lindex, IntPtr hwndParent, COMRECT lprcPosRect)
at System.Windows.Forms.AxHost.DoVerb(Int32 verb)
at System.Windows.Forms.AxHost.InPlaceActivate()
InnerException:
The control is being added programatically, as in the wiinforms samples. Can anyone suggest a workaround? Thank you in advance.
- doug
View 5 Replies
View Related
Jan 16, 2008
I installed both SQL 2005 developer and SQL Server 2005 Express Edition with Advanced Services SP2 and Microsoft SQL Server 2005 Express Edition Toolkit.
In every version "SQL Server Business Intelligence Development Studio" was missing. I uninstalled and reinstalled both version but always "SQL Server Business Intelligence Development Studio" was not available and the computer could not find devenv.exe file.
I installed visual studio 2008 as well. For some reason the start menu link for "SQL Server Business Intelligence Development Studio" is ""C:Program FilesMicrosoft Visual Studio 8Common7IDEdevenv.exe"" and devenv.exe is not there or anywhere
Pleas advise.
View 4 Replies
View Related
May 13, 2008
I want to export file such as .csv, xml , word from ReportViewer in visual studio 2008 but when I run on ASP.NET .net framework 2.0, it can export only excel & pdf files. But in business intelligent project in Visual Studio 2005 I can export all files that I want.
How can I export file from reportviewer in visual studio 2008 run on web application?
Regards,
NPeng
View 1 Replies
View Related
Apr 29, 2008
I am trying to send a variable selected by the user and have all of the results that match that selection show in a datagridview. I tried using this query but it gives me not result.
//code
SELECT wasteDate, wasteFeed, wasteLbs
FROM tbWaste
WHERE (wasteDate = 'date1')
//code
date1 is being set by a datetimepicker
I am getting no results when I run the program
I have tried out every different combination of ways of coding it i can think of
if anyone can help it would be greatly appriciated.
View 1 Replies
View Related
Feb 11, 2008
I watched and followed the Intro to VB 2008 Express, but in the final part of the video, when you add a database, i did everything as the video says, still i get:
An error occurred creating the form. See Exception.InnerException for details. The error is: Unable to load DLL 'sqlceme35.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Ive tried the fix stated in another forum, the one about changing the "Target CPU" but the option doesn appear, what does appear its the "Platfrom" dropdown list, but its fixed to "Any CPU" and dont have any more options.
Ive also downloaded Microsoft SQL Server Compact 3.5 ENU and "re-installed" and selected repair, followed the steps, rebooted and still nothing.
The problem persists, any ideas, please?
View 6 Replies
View Related
Feb 25, 2008
to create a code.
Hi everyone,
I have SQL SERVER 2005 on my desktop and i need to run queries from remote machines on my SQL SERVER.
I thought it would be a good i idea to create a web page on my machine to where remote users can contact and activate SQL QUERIES.
My question is very simple and i wonder i a simple answer is available:
How do i run SQL queries whereby ASP code ?
How do i make a connection between a web page (.asp code) and a SQL sever ?
If the answer is complicated as i'm afraid it is, could any one provide me a link for a tutorial dealing with the above issues ?
Thanks a lot !
View 2 Replies
View Related