SQL Server 2005 Management Studio Express - sql

I am using xp. I want to learn SQL.
I have SQL Server Management Studio Express.
I dont know how it works but when I open it ,it says couldn't connect to server.
It asks for server name and instance name, I don't have any idea where to find server name and instance name.
Also looked for solutions related to server name and instance name but dont find SQL manager. Please tell me how to practice SQL?
I am Learning for the first time.Please help me.

Hope these videos will help you to make first steps in studiyng SQL Server.
If you want to study just SQL (not specially SQL Server), you may like lessons on w3schools

Related

Cannot drop old domain user in SQL Server 2008 R2

I would like to ask your help to re-sync old AD user (let's say AD\username) with new AD user (AD\username - the same name but different SIDs) in SQL Server 2008 R2.
I looked at the question "SQL Server Windows Login - Same Name Different User (SID)" but in my case the old user owns schema and tables in multiple DBs and cannot DROP the old username.
Can anyone help, please?
Thank you in advance
CI
You can use a few methods:
sp_help_revlogin was created for SQL Server 2005 and is still used quite often. This support article explains it in-depth and shows how to use it.
dbatools.io is an open source community tool suite created in PowerShell by some very generous folks. There are a few blogs showing how to use their scripts, but here is one to handle the logins.
Find other scripts which do the same thing, like this one which is for AGs but still applies.

Can I restore a backup which was on SQL Express to sql server server 2008 without any problems

I am going to do a customer SQL upgrade and they currently have SQL Express and I want to upgrade it to Microsoft SQL server 2008.
Will it be okay to restore the SQL Express backup to Microsoft SQL Server 2008?
First off, the comments seem to mention MySQL. I can see that you edited it to say SQL Express. If it is indeed MS SQL Express then yes, as SMM said it will work.
I have done this a few times before, and it worked just fine. Though rather than a backup/restore I would move the .mdf file.
This is done by detaching the DB from the Express instance and attaching it to the Server 2008 instance; this can be easily done via sqlcmd or the Studio Manager. The steps can vary based on systems(s) setup. As such, I did a google search to see if there existed a step by step guide for this rather than typing a bunch of scenarios as shots in the dark. There are a plethora of them:
I just Googled: move sql express .mdf to sql server 2008
I also found this and it would seem to be a good match for your situation and has good information:
http://www.mipsis.com/help/Moving%20SQL%20Express%20Database%20to%20SQL%20Server.pdf
Let me know how it goes, and if you need specific assistance with the process please follow up.
I have done SQL Express to SQL 2000 and SQL 2005 successfully in the (distant) past. I am sure this will work. I don't remember any specific caveats other than making sure that you don't try to go from a later version of Express to an earlier version of SQL.

Use Report Builder to connect to SQL Server Express 2008

I am working on my senior project in college and we as a team are creating a web tracking application, and right now we at the point where we need find out how to create reports based on our DB.
We are using MS SQL server Express 2008, so here is my question: I know MS has Report Builder but I am wondering if you know if this builder will works with SQL server express 2008?
May be you can share some of the links how to use this product. I was searching but so far cannot find anything which can help me. Also does it allow me to run my own queries and connect this software to my db?
Ad hoc report builder doesn't work with SQL Server Express. Also you are not able to get the data from external databases. You may use the data from current instance of SQL Express only.
However you can consider some third party reporting tools. I'd advice our SharpShooter Reports). Please contact sales dept and let them know that you work on a college project. The tool is free for non-commercial college development (may be they will ask you to write a review).

Linking SQL Server 2000 and SQL Server 2008, is this possible?

I am writing stored procs for a new system in SQL Server 2008 but I need to also update data in an older db - SQL Server 2000. I have searched but haven't found any solution to this. Is it possible? What are my choices?
Thank you!!
If you mean connect to and query against a SQL Server 2000 database, then yes, this is possible through the use of linked servers assuming that the two database servers are able to communicate with each other on the same network.
See Linked Servers for more.
This has been asked and answered in another thread, but here's a great link to get you on your way:
http://msdn.microsoft.com/en-us/library/ms188279.aspx
The concept you're looking for is called a "linked server", which allows SQL Server to send SQL commands to a remote server.

How to automate a Visual Studio/SQL Server report

I'm currently working on a reporting tool for a company that conducts the same survey at different clients. So the analysis and report would be the same, except for the conclusions. The ultimate goal of the project would be a tool that automatically extracts, analyses the data and creates the report. SQL Server and Visual Studio are mandatory programs.
I'm completely new to all of this except for the SQL-language. After reading up on this and asking around the usage of stored procedures seemed the best option. If I interpret correct these should be stored in SQL Server and could then be envoked in Visual Studio
However, my problem is, I can't figure out how to connect to the external ODBC-server that holds the data in SQL Server 2005. It seems to me there is no way to connect to a remote server in SQL Server 2005. On the other hand, in Visual Studio 2005 I did manage to connect and extract data from the server.
Is this the right way to achieve my goal (repeatable/automated report)? If so, what am I doing/thinking wrong? If not, please enlighten me.
Thx in advance
Another way to do this is to use bcp...you can check this article to see if there are any answers here for you. There would be no remote server connections if you are able to run the command and the local box that contains the sql server.
You might be able to set up a linked server in SQL Server 2005 to connect to your remote server/database.