Can I use Built-in SQL Server in Visual Studio 2010 ?

Hi Friends, I am Atif.
If I will upload my project to my Server Domain and I want to use Built-in Visual Studio 2010 Sql Server Expreess Database then it will work. If yes then Please suggest me How..??
Actually I don't want to install SQL Server Database Seperately.
Tell me How can i achieve this.
Thanks and Regards.
Atif.

Hi Atif,
Besides other post, to use SQL Server Express for development work, you just need to specify the data source (SQL server's name) and authentication details in a connection string. For more information about SQL Server Express connection string, you can review
the examples in the following articles.
Database Connectionstrings
SQL Server Connection Strings for ASP.NET Web Applications
Also please note that SQL Server Express edition has some limitations, for example: only one CPU can be used by the express edition, the maximum size of a database is 4 GB (10GB in SQL Server 2008 R2 Express and higher versions of SQL Server Express),
it can only use up to 1GB of RAM.
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support

Similar Messages

  • Crystal reports integration with sql server and visual studio 2010

    when I am trying to open a crystal report  through code ( visual basic 2010 ) I get the error
    the report has no tables
    I am using SQL SERVER 2008 R2
    HERE IS THE CODE I WROTE 
    Imports System.Data
    Imports System.Data.OleDb
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Windows.Forms
    Imports CrystalDecisions.Shared
    Public Class frmRep
        Dim objConnection As New OleDbConnection("Provider=SQLOLEDB;Data Source=ASHRAF-PC\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=TEST")
        Dim objDataAdapter As New OleDbDataAdapter()
        Dim objDataSet As New DataSet()
        Private Sub CrystalReportViewer1_Load(sender As System.Object, e As System.EventArgs) Handles CrystalReportViewer1.Load
        End Sub
        Private Sub frmRep_Load(sender As Object, e As System.EventArgs) Handles Me.Load
            Dim cr As New ReportDocument
            objDataAdapter.SelectCommand = New OleDbCommand()
            objDataAdapter.SelectCommand.Connection = objConnection
            objDataAdapter.SelectCommand.CommandType = CommandType.Text
            objDataAdapter.SelectCommand.CommandText = "select * from bands"
            objConnection.Open()
            objDataAdapter.Fill(objDataSet, "bands")
            objConnection.Close()
            cr.Load("D:\MY VB 2010 PROJECTS\test2\test2\CrystalReport1.rpt")
            cr.SetDataSource(objDataSet.Tables("bands"))
            CrystalReportViewer1.ReportSource = cr
            CrystalReportViewer1.Refresh()
        End Sub
    End Class

    I suggest you post that question in a Crystal Reports forum.
    Markus

  • How do I create a view in SQL Server in Visual Studio Express 2013 for Desktop?

    Hi
    I've got a SQL Server database set up using the internal SQL Server in Visual Studio Express 2013 for Desktop. I want to create a view (using tables with one to many relationships) but I don't
    know how to do it.
    Where can I find a good tutorial on creating views in SQL Server in Visual Studio Express 2013 for Desktop? I think Visual Studio Express 2013 for Desktop doesn't have some view designer that
    exists in the non-express version of Visual Studio (if I'm not mistaken). So I think I'd need a tutorial on how to do the actual SQL, unless there is some tool I don't know about.
    Thanks

    Hi ,
    According to your description, if you install SQL Server SQL Server 2014 Express and SQL Server Manager Studio tools (SSMS), if you want to create a view, you can use SSMS. Then if you want to connect to and Diagram your SQL Express Database in Visual Studio
    2013, you can attach the database file by using the .NET Framework Data Provider for SQL Server in Visual Studio, and create a database diagram via expanding the “Database Diagrams” node.
     For more information, there is similar issue about how to connect to and Diagram your SQL Express Database in Visual Studio 2012 , you can review the following article,
    http://blogs.msdn.com/b/bethmassi/archive/2011/10/27/how-to-connect-to-and-diagram-your-sql-express-database-in-visual-studio-lightswitch.aspx.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Hi, I would like to know if is it possible to install windows on mac pro , because I need to have some application like SQL server and visual studio, and they could not be install on mac

    hi, I would like to know if is it possible to install windows on macbook pro , because I need to have some application like SQL server and visual studio, and they could not be install on mac

    Windows on a Mac

  • Can't use bcp in SQL Server procedure

    I need to export data of sales between the last 4 years to a csv using a stored procedure, however the output of that just gives User
    name not provided, either use -U to provide the username or use -T for Trusted Connection, then it gives the possible parameters to
    give to the command. What am I typing wrong? I've double checked the servername and i'm using -T.
    select
    dateSales, Sales
    into ##temp
    from
    dbo.Sales
    where
    dateSales between convert(varchar(20), year(DATEADD(YEAR, -4, getdate())))+'-01-01' AND getdate();
    select * from ##temp;
    EXEC xp_cmdshell 'bcp "select * from ##temp" queryout "C:\Users\PatriceW\Documents\sales.csv" -c -T -SSQLserver -t, -r\r\n'
    Thank you in advance.

    Unfortunately I can't reproduce it in my local.
    I tried belwo 2 in SSMS and also in Command prompt and both worked -
    EXEC xp_cmdshell 'bcp "select * from ##temp" queryout "C:\temp\sales.csv" -c -T'
    EXEC xp_cmdshell 'bcp "select * from ##temp" queryout "C:\temp\sales.csv" -c -T -S localhost'
    My BCP is inside C:\Program Files\Microsoft SQL Server\100\Tools\Binn.
    Few things to check:
    Ensure if the folder exists and you have permission to write to it. Try giving some local path.
    Try running the bcp from SSMS and CMD both. If it runs from CMD then SQL Server account has no permissions
    Do consider reading Permissions, Remarks section given in below:
     https://msdn.microsoft.com/en-us/library/ms162802.aspx
    -Vaibhav Chaudhari

  • Can I use Java with SQL Server CE edition?

    Hi,
    Can anybody tell me whether I can use Java to program the database operations for SQL Server CE?

    Hi:
    I have the same question. I don't know java how to connect the Microsoft SQL Server CE. Do you know the answer now? Please let me know. Thank you very much.
    chia-li
    [email protected]

  • Connecting BI Web Server with SQL Server Express / Visual Studio Express for Report Development

    Hi,
    My company is using the Report Builder 3.0 to build the BI Reports ( I guess based on SQL Server 2008 R2). Our software vendor has provided us the web URL to access the BI Server. I want to generate the BI Reports with SQL Server Express or  Visual
    Studio Express instead of Report Builder 3.0. Need some guidance in this regard.
    regards, BI.Developer.

    Hi,
    Based on my research, if we want to open the report from report server to Business Intelligence Development Studio, we should download the report from report manager, then add this item in Business Intelligence Development Studio. For more details, please
    see the following steps:
    Type the URL in IE browser to access the repot manager.
    Browse to the RDL file folder or location.
    Hover over the report, and click the drop-down arrow near the RDL file.
    Click on download button, the download window will pop up now. Then save the rdl file.
    Click Manage option in the drop-down list, make a note of its Data Source Connection string.
    Create a Report Server Project in Business Intelligence Development Studio.
    Right-click the Reports folder to open the Add Existing Item dialog box, navigate to the location where you saved the .rdl file for the report, and then click Add.
    Right-click the Data Source to verify the connection string is correct.
    Besides, please make sure that software vendor had assigned ‘View reports’, ’Manage reports’, ‘Manage folder’ and ‘Manage data sources’ tasks for your account, so that you can download the report and view the data source.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Licencing of Windows 8.1, SQL Server and Visual Studio

    1. Windows 8 (OEM Version)
        a. Is it legal to re-install Windows 8 OEM version on a PC (this might
    be required because of formatting of PC hard disk)? Is there any upper limit on how many times a Windows 8 OEM version can be re-installed
    on a PC?
        b. Can I continue to use same Windows 8 OEM version even after upgrading
    a PC (for example change of processor, change of hard disk, change of RAM etc.)
    2. SQL Server (Developer and Express) Version:
       a. Your site mentions that SQL Server Developer edition can be used for
    software development and testing, but a software dealer whom I have approached says its not legal to use SQL Server Developer edition for
    development in a software consultancy. Please clarify.
       b. Is it legal to use SQL Server Express Edition for software development
    purpose in  a software consultancy?
    3. Visual Studio Express Edition
        a. Is it legal to use Visual Studio Express Edition for software development
    purpose in  a software consultancy?
    I had emailed this query to [email protected] yesterday but I have not received any reply.

    This question is a bit broad for a forum post. What have you tried and where does it fail? This code will give a list of files in an app folder. It might get you started: [c# code, but should be easy to translate to VB]
    public async Task<List<string>> GetFileListFromFolder() {
    List<string> fileList = new List<string>();
    StorageFolder storageFolder = await Package.Current.InstalledLocation.GetFolderAsync(@"myFolder\");
    foreach (StorageFile fl in await storageFolder.GetFilesAsync())
    fileList.Add(fl.Name);
    return fileList;
    I'm a self-taught noob amateur. Please take this into account when responding to my posts or when taking advice from me.

  • I cannot connect to my basic SQL server from Visual Studio Ultimate 2013? Error 40 - Cannot establish connection

    I just started learning ASP.NET through a book, and it asks to connect to "your" SQL server and explore a .mdf file. I've been trying to install SQL, but I only just now got a working installation, and even then it won't let me install the Management
    Software. Whenever I try to connect, I get this error: http://puu.sh/7F2JY.png
    This is exactly what I do to connect:
    1) Open project
    2) Navigate to the Server Explorer
    3) Click on connect to database
    4) In this menu, I can see me Machine name on the top part, which I think means that it's picking up my server runningh
    5) On the bottom, it wants me to enter a database name. I think this may be my problem, as I have no idea what to do here.
    Also, when I double click on the database file, I get this errpr (52): http://puu.sh/7F2Yw.png
    I really don't know what to do here, so post any tips down below

    Hi,
    Did you choose the correct Server name? It should be the machine name where you installed SQL Server on.
    Is it empty when you open select or enter database name drop box in the Add connect dialog box in the Visual Studio 2013?
    “Update: I re-installed, and then used both installers. Now I have the Server Management tools, but I still cannot connect.”
    The screenshots indicates that the SQL Server is not accessible.
    Do you mean that you are not able to connect SQL Server by using SQL Server Management Studio?
    If so, make sure that SQL Server Services is started.
    Please check out the following articles for details:
    How to: Start an Instance of SQL Server (SQL Server Configuration Manager)
    http://technet.microsoft.com/en-us/library/ms190699(v=sql.105).aspx
    Connect to Any SQL Server Component from SQL Server Management Studio
    http://technet.microsoft.com/en-us/library/ms173871.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • HTML Client - can I use authentication when debugging locally inside Visual Studio

    This should be so simple, but I cannot find it, is it possible to enable authentication when debugging an HTML client locally inside VS so that the Login page is shown and you have to log in when you run the app? 
    We are adding additional code into the Login page and need to debug this... at the moment the only way we can find to do this is to actually deploy the app.
    There must be a way?
    Regards, Xander. My Blog

    In this post Security with HTML Client Huy said the following:
    "Unfortunately at debug time the runtime will always use a Test Account with Administrator permission and there's no good way to change this behavior."
    So there is no "good" (i.e. easy) way to do this, but perhaps there is a work around?
    Regards, Xander. My Blog

  • XDK APIs (C/C++/Java) and tools can also  be used with MS SQL Server

    I want to know if XDK APIs (Java or C/C++ APIs especially) and tools can be used with MS SQL Server or not?
    I want to write a simple application that updates XML ( acordXML used for insurance) document into SQL Server tables. Of course I am assuming to transform into appropriate XSU APIs format.

    No. Use SQLXML instead on a SQL Server.

  • HOW TO RESTORE A .BAK SQL BACKUP IN VSUAL STUDIO 2010

    Respected sir,
             i have microsoft visual studio 2010.i have a websit in ASP.NET with sql server database.
    i have my database as .bak files.i cant restore it.
             please help me urgent, how to restore the database.
             thanks in advance.
             please help me
                                  with regards,
                                              jamsheedh cv

    Hi jamsheedh,
    In addition, if you want to restore .bak file, you can also run the restore command in the Visual Studio 2010 Command Prompt. Note that right click the run as administrator. The restore statement:
    Restore database <databasename>
    From disk=’path\.bak’
    With move ‘<data>’ to ‘new path\.mdf’,
    move ‘<log>’ to ‘new path\.ldf’,
    replace
    There is an example about restoring database in VS 2008 command prompt, you can review the following article.
    http://blogs.artinsoft.net/Mrojas/archive/2010/10/22/How-to-restore-SQLSERVER-bak-file-to-mdf.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Hello All,
    I am getting below error can you please help me
    Error:-
    The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Perhaps this thread will help you out
    http://stackoverflow.com/questions/11453066/error-the-transaction-associated-with-the-current-connection-has-completed-but
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to load decimal values into a file using bcp in SQL Server 2000?

    Hi everyone,
    I'm trying to load data from a database table to a text file using bcp on SQL Server 2000. When I'm loading the decimal values, the values before the decimal are not being loaded into the file. How could I load the values before decimals?
    Here are the DDLs and DMLs of what I'm trying to run:
    CREATE TABLE [dbo].[Product_Sales](
    [Year_of_Sale] [smallint] NOT NULL,
    [Product_Type] [varchar](25) NOT NULL,
    [Product_Group] [varchar](25) NOT NULL,
    [Category_Type] [varchar](25) NOT NULL,
    [Category_Group] [varchar](10) NOT NULL,
    [Product_Count] [bigint] NOT NULL,
    [Product_Amount] [decimal](19, 2) NOT NULL,
    [Category_Count] [bigint] NOT NULL,
    [Category_Amount] [decimal](19, 2) NOT NULL,
    CONSTRAINT [PK_Product_Sales] PRIMARY KEY CLUSTERED
    [Year_of_Sale] ASC,
    [Product_Type] ASC,
    [Product_Group] ASC,
    [Category_Type] ASC,
    [Category_Group] ASC
    ) ON [PRIMARY]
    ) ON [PRIMARY]
    INSERT INTO [Yearly_Sales].[dbo].[Product_Sales]
    VALUES(2010, 'Online', 'Web', 'Cameras', 'Electronics', 547, 0.00, 0, 0.00)
    EXEC [master].[dbo].[xp_cmdshell] 'bcp "SELECT * FROM [Yearly_Sales].[dbo].[Product_Sales]" queryout D:\Yearly_Sales\Product_Sales.dat -c -T -S'
    And the output I see in the file is:
    2010 Online Web Cameras Electronics 547 .00 0 .00
    The values before decimals are being truncated.
    Thanks,
    Bangaaram
    Known is a DROP, Unknown is an OCEAN.

    You can modify the decimal column(s) in the table to varchar type before export. But it does not look good.
    alter table [dbo].[Product_Sales]
    Alter column [Product_Amount] varchar(20)
    alter table [dbo].[Product_Sales]
    Alter column [Category_Amount] varchar(20)
    Does that make any sense?
    Known is a DROP, Unknown is an OCEAN.
    Basically you modify the decimal column to a varchar type before you run the bcp command for export. You can modify your source table or you can modify them on the fly. It is just a workaround.
    Modifying the source wouldn't be a good idea. Never do that if you can't get your desired output.
    Known is a DROP, Unknown is an OCEAN.

  • SQL Server 2012 Management Studio: XML XQuery-query the XML Blob using CTE: How to specify the coorelation name in bulk rowset?

    Hi all,
    I just started doing the XML Xquery programming in my SQL Server 2012 Management Studio. I executed the following code:
    --query the XML Blob using a CTE (pulling from the XML file each time) Products
    WITH XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'H:\Products.xml', SINGLE_BLOB) ) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    I got the the following Msg:
    Msg 491, Level 16, State 1, Line 4
    A correlation name must be specified for the bulk rowset in the from clause.
    How can I specify the correction name for the bulk rowset in my project?
    Please kindly help, advise and respond.
    Thanks in advance,
    Scott Chang

    Hello Scott,
    You have to assign a table alias for the OPENROWSET =>
    --query the XML Blob using a CTE (pulling from the XML file each time) Products
    WITH XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'H:\Products.xml', SINGLE_BLOB) AS MyXML ) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for