I'm used to the old Query Analyzer, and now with the Management Studio, I'm finding some things I don't like and I wondered if there's a way around them. First, I set the database that I want to use, and then go to open a script file that I want to run, and that causes the database to change back to "master". Also, if you want to run multiple scripts on a single database, you still have to connect to that database every time you want to run a script. Is there any way around that?
I'm having some problems setting up a SQL Server 2005 Query Notification application. I've only recently moved from SQL Server 2000 so 2005 is still a little alien to me!
I've followed example found on the internet in the following steps:
1.
ALTER DATABASE <dbname> SET ENABLE_BROKER
2.
GRANT CREATE PROCEDURE TO <user>
GRANT CREATE QUEUE TO <user>
GRANT CREATE SERVICE TO <user>
GRANT SUBSCRIBE QUERY NOTIFICATIONS TO <user>
GRANT RECEIVE ON QueryNotificationErrorsQueue TO <user>
3.
ALTER DATABASE <dbname> SET TRUSTWORTHY ON
The application developers have also followed the same example setting up SQL cache and the connection code. When they start the application I can see the connection in the activity monitor but it has a status of SUSPENDED. I've also checked the view:
SELECT * FROM sys.dm_qn_subscriptions
There are no subscriptions setup I can however see that there is a new SP created. I tried to creating master keys as well but I'm not sure what the reasoning behind this is.
Is there anything else I need to take into consideration or check? When I change the data which they use for their select statement SQL profiler doesn't register anything (except the update). I have however seen this:
exec sp_executesql N'END CONVERSATION @p1; BEGIN CONVERSATION TIMER (''69e2c786-9d33-dc11-a751-0050568146e8'') TIMEOUT = 120; WAITFOR(RECEIVE TOP (1) message_type_name, conversation_handle, cast(message_body AS XML) as message_body from [SqlQueryNotificationService-5fb25d04-6ef6-47e6-9406-854f15e16eb7]), TIMEOUT @p2;',N'@p2 int,@p1 uniqueidentifier',@p2=60000,@p1='BD98F6B4-A133-DC11-A751-0050568146E8'
I want to query data from a cube in analysis services with parameters in reporting services. I'm not sure how to make my select statement. Can someone help me please
I downloaded the trial version of sql server 2005. but after installation, I couldnt find the Enterprise Manager and Query Analyzer. Any idea about that? Thanks.
Can anyone point me to a resource on the best way to setup and use SSRS 2005 when reporting on tables that could have 1 billion rows. The database in question will have mulitple schema's each being at least 1 terabyte in size.
I have XP Pro SP2 with MDAC 2.8.1022. It had a problem so I tried to reinstall MDAC and got a Fatal Setup Error. This setup does not support installing on this operating system. I downloaded MDAC 2.8 1177 and get the same error.
I thought of uninstalling/reinstalling SP2, but this is a 2 month old Dell Latitude 610 with factory installed XP. There is no Windows Service Pack 2 option listed in the Control Panel > Add/Remove Programs.
There's some other strange things, so I wonder if they are related.
1) I have Paul set up as an administrator account. Some folders like MSSQL show that account with no permissions. I grant all the permissions to Paul for that folder. I come back later and the permissions are gone.
2) I deleted 20 files in Explorer, but 7 of them did not go away. I deleted those 7 again and they instatnly reappeared. I deleted those 7 again and then they finally went away.
3) I get a slow reaction time for things like Windows Explorer and opening and closing programs. This is suprising since it has 2 gig of RAM and 2.3 Gig processor. Could it be a memory handling problem that's causing OS problems. Probably, the memory didn't handle the OS installation well and the whole system is compromised now.
We're doing upgrades from SQL 2008 R2 to SQL 2014. This is blocked due to RS is installed but not configured. Our desired action is to uninstall RS and proceed with the upgrade. But when setuparp.exe is raised, it does not list all the features on the 'Select Features' page. In fact, it only lists the last 2 shared features (SQ Client Connectivity SDK and Microsoft Sync Framework). However, all items appear to be listed on the 'Select Instance' page including RS. I've seen this issue on 2 of our SQL 2008 R2 Servers already.
I'm trying to install SQL Server Management studio 2012 on my Windows 7 (x64) standalone laptop. When I click "New SQL stand-alone installation..." it runs a Setup Support Rules check and always fails "Setup Account Privileges". I've looked into the error and I keep getting that I need to change security rules but I don't have that option in window 7. How do I get around this without having to resort to a computer running Windows Server?
I have Visual Studio 2013 premium installed along with Localdb v11. I just want to connect and manage my database engine through SSMS when developing any application.
This forum is intended for users who are new to SQL Server, and have basic usage questions. If you have setup or installation issues or questions, you should check out the Setup forum.
I am running a number of SQL instances on my PC. Within the network, I have think server with various System Center components. For compatibility reasons, some features of System Center 2012 R2 had to be delegated to different SQL databases. My question is, because there is now more than one IP address on my system, and each instance of SQL is assigned to its own IP, is there a way to setup DNS and SQL so the namespace points to the desired IP address? For Instance:
MSSQL2008 instance is set to run on = 11.12.13.1 MSSQL2012 is set to run on = 11.12.13.2 IN DNS: A Record: Mike-PC = 11.12.13.1 A Record: Mike-PC = 11.12.13.2
If I want to use MSSQL2008 by specifying Mike-PC as the DNS name, how would I do that with 100% accuracy? If there is another way to get the job done, I am more than willing to approach this differently.
I know this is discussed very often, but please indulge me. I have two hardware/software configurations for the SQL servers, (1) NT4 + SQL7 on 2HDD's (C/D-drive) and, (2) NT4 + SQL7 on 3HDD's (C/D/E-drive). What will be the best configuration for SQL regarding: a. RAID, b. placement of the OS, c. placement of the data & log files(devices), d. local(hdd) backups
I`m new to SQL Server, so excuse this if it`s a well-known problem with a well-known solution.
I tried setting up SQL Server 6.5 (the box but not the docs or install claims it`s an upgrade product) but the install hung at "Setup is now installing the initial SQL Server configuration" for over 10 minutes. That is, the install kept processing something but did not appear to be coming to an end until I killed it. This happened repeatedly, and on a second server, too.
I then installed 6.0 (over 6.5!), and was able to install 6.5 over 6.0. However, I`m not able to install the 6.5 docs.
SQL Server appears to run (although I`ve not tried any DB stuff).
Any suggestions? Should I uninstall and start over?
Hello, This is the present setup. Server A --> sql server 2000 Server B --> sql server 2005
On my machine I point to an instance name of sql server 2000 to use. i.e. sqlserver2000Serverinstance1 On my local machine I have installed sql server 2000 and can use the enterprise manager. Have the Admin rights. I have setup a daily backup job on sql 2000...
On server B, I installed sql 2005. Restored the sql 2000 backup onto sql 2005. And now I have the sql 2000 database in sql server 2005.
Now I can use the sql 2005 by refering to the serverB name (Not an instance).
In Server A, the applications are using a login name (sql authentication) i.e. username, password.
Questions 1) How do I install sql 2005 on my local machine (Remember that I have sql 2000)
2) If I should run the setup for sql 2005 on local machine, then during the installation, do I give it an instance name or should this instance name be done on the server i.e. server B ?
Iam new to SQL and using sql2000. I have created a DTS which works as I want, but I am abit concerned about the way set-up.
My source is a Lotus notes view and my data is going to a sql table. Now when I click in 'EM/DTS/MyPackage' and then rhs click 'design package' and look how the source is being extract after double clicking the source db I get a mini window labelled 'Execute SQL Task Properties'. In the bottom part of this window their is a line labelled SQL Statement. In here there is a syntax for creating a table, exactly the same as my created table ie. the destination table. I really dont understand why this syntax is appearing here.
Iam new to SQL and using sql2000. I have created a DTS which works as I want, but I am abit concerned about the way set-up.
My source is a Lotus notes view and my data is going to a sql table. Now when I click in 'EM/DTS/MyPackage' and then rhs click 'design package' and look how the source is being extract after double clicking the source db I get a mini window labelled 'Execute SQL Task Properties'. In the bottom part of this window their is a line labelled SQL Statement. In here there is a syntax for creating a table, exactly the same as my created table ie. the destination table. I really dont understand why this syntax is appearing here.
How would I set up a sql server database based on the following problem? I will be creating a poll based on 9 dimensions that compare two companies. honda yamaha performance features reliability conformance durability serviceability aesthetics safety other perceptives The values stored would be 1 or 0 so the values can be totalled. The user will be using a web pageand will select a radio button per dimension for either honda or yamaha. Would this work? tbl_companiescompanyid int pkcompanyname varchar tbl_resultsresultsid int pkp int --performancef int --featuresr int --reliabilityc int --conformanced int --durabilitys int --serviceabilitya int --aestheticssf int --safteyop int --other perceptivescompanyid int -- fk to tbl_companies.companyiduserid int -- fk to tbl_users.userid tlb_usersuserid int pkusername varcharuserip varchar
I have an asp 2.0 app that connects to a database in another city. When I test this app through VS2005 is connects and works great. After I created a web setup project it goes bad. I ran the setup on 2 different computers, including the dev machine, both start ok and bring up the applications main menu, but when I choose a menu item that is supposed to bring up a datagrid from the sql server I get an error saying it's not a trusted connection. Any advice on where I should start looking? It's got me beat. Thanks.
I was trying to install the SQL Server on my machine and I successfully did it because the server is running. I can get into the Enterprise Manager (without password) and I'm able to create new databases. Except, I can not log into those databases with the userid that I also created with full access. It must be somekind of security issue but I can not figure out what. The message says: "Unable to connect to server local - SQL server does not exist or access denied". If I look at my SQL service manager my server name is "NEWONE" , which is also my computer name. So, I'm not sure what's wrong. I tried to log in with the 'sa' account it doesn't work either.
I have installed MSDE200A and i didn’t gave any password(setup BLANKSAPWD=1). My configuration code for the connection with msde is: <appSettings> <add key="DSN" value="Initial Catalog=dyt_mac;Data Source=localhost;Integrated Security=SSPI;"/> </appSettings>
When i try to connect with the database this error occurs:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.
hello everyone,it's first time for me to write here and also to use SQL.While i was installing SQl 2000 i got Setup Message said:" Microsoft SQL Server 2000 Enterprise Edition server component is not supported on this operating system. Only client component will be available for installation."Hope to know what's wrong, and please guide me.Thanks alot
I have a client application which is running winnt4 sp6, sql7 sp1, gives the following error.
Msg 18458, Level 14, State 1, Server Microsoft SQL Server, Line 0 Login failed- The maximum simultaneous user count of 5 licenses for this server has been exceeded. Additional licenses should be obtained and registered via the Licensing application in the NT Control Panel.
I have found in technet article no Q180364, which ask to rebuild the registry of sql server. Was wondering anybody had the same experience. I can't shutdown the server more than 30 mins.
I need to replicate a database which will be updated both sides.Table doesn't have the primary key,and already has data.Please advice which replication will suit and what are the limitations.URGENT!! Thanks!
We are working on a new Payroll server. Our payroll department wants to lock out MIS and SQL Admins as much as possible. What we would like to do is allow the SQL Admins to still perform admin tasks such as backups, audit tracking, etc, while not being able to get into the tables. Also, we would prefer to do this security at the database level, rather than the server level. Any thoughts on this?
I'm trying to setup SQLAgentMail but received no message.
I have setup my SQL SERVER:
- using Domain Administrator to start SQL SERVER - using Domain Administrator to start SQL SERVER AGENT - created a mail profile called Test which has mailbox point to my domain user email account when I logged in my SQL SERVER machine as Domain Administrator - setup Test as the mail profile in the Mail Session of the SQL SERVER AGENT PROPERTIES
I have clicked the Test button in the Mail Session and it return with the message "Successfully start (and stopped) a mail session with this profile."
But I don't get the testing email in my domain user email account.
I did setup to have a Desktop SQL Server running on Windows NT workstation in a different domain across the internet create a pull subscription to a transaction publication that is immediate updating that I have published on my NT SERVER in my domain. It never got any further than creating the subscription -- I got the following error on the pull:shared agent job history:
The job failed unable to determine if the owner (domainusername) of job SQLServername-databasename-pubname-SQLServername2-databasename2 - 0 has server access (reason: Could not obtain information about Windows NT group/user 'othernameIdon'tunderstand'(SQLState 4200000) (Error 8198)
I want to be able to do bi-directional transaction based replication between a 7.0 SQL server running on Windows NT 4.0 server SP5 and an NT Workstation 4.0 SP5. Can this be done or would it require that both machines to be NT Server based? The reason I asked is because previously under 6.5 I was able to install the SQL operating system on Windows NT Workstation and now it looks like I can only install the Desktop version under 7.0. Will this give me the type of replication I am looking for?
12:09:16 Process Exit Code: (-1) 12:09:28 Setup failed to configure the server. Refer to the server error logs and C:WINNTsqlstp.log for more information. 12:09:28 Action CleanUpInstall: 12:09:28 C:DOCUME~1ADMINA~1LOCALS~1TempSqlSetupBinsc m.exe -Silent 1 -Action 4 -Service SQLSERVERAGENT 12:09:28 Process Exit Code: (1060) The specified service does not exist as an installed service.