Quantcast
Channel: Forum Getting started with SQL Server
Browsing all 7129 articles
Browse latest View live

Need help with sp_MSforeachtable syntax

What's wrong with my syntax?           sp_MSforeachtable 'select ''?'' Tablename, Update Statistics ''?'' With FullScan'I'm trying to print the table name, then update stats for that table.TIA,edm2

View Article


Changed DB owner: "The dependent aliases were dropped."

I ran this query to change the DB owner to 'sa"         EXEC sp_changedbowner @loginame = N'sa', @map = false and the message returned was "The dependent aliases were dropped." What does that message...

View Article


Image may be NSFW.
Clik here to view.

query

How to update the status to 'Active' when the condition is :max(audit_date) and max(audit_sequence) then update status to 'Active' for all different product.There are many product whose max(audit_date)...

View Article

Open a TFS 2012 SQL Server Database project using SQL Server Mgmt Studio 2012

Hello,I am not sure if this is the right forum to ask this question. If it's not please point me to the right one.Is that possible to open a TFS 2012 SQL Server Database project (for versioning...

View Article

unable to connect to sql server database

i run on CMD:aspnet_regsql -C "Data Source  =Davidchamoun/sqlexpress : intergrated security= true" -ssadd -sstype pi got a network-related or instance-specific error occurred while establishing a...

View Article


SQL Query

 IDNAME1Deepak Kumar2Sourabh Shrivastav2Amit Wadhwa3Ashutosh Tripathi3Ashutosh Kumar3Rizvi “NameList” table has name of persons with ID.Select query is required for following condition:If the Id’s are...

View Article

Enabling "Forced Parameterization" on a sql 2008 DB.....

We have a relatively high re-compilation rate of several Adhoc queries for a given DB. It has been suggested that we enable the DB "Forced Parameterization"  option for that DB. Supposedly, then, even...

View Article

sql 2008: enlarging text display in Results pane.....

Is it possible to enlarge the text displayed in the Results pane? (useful when viewing on an overhead projector)edm2 *** Just figured it out. Under SSMS, Tools > Options > Environment > Fonts...

View Article


Win8.1 SQL issues

What do I need to know when coming from SQL 2005

View Article


what is the database owner and database user?

uploading the databaseas you can see in the picture above, i have uploaded my .bak file of my database which i made it in sql 2005 and im trying to connect it to my website. the owner of the database...

View Article

checklist

HiThat daily tasks (checklist) must make a DBA with SQL/MYSQL servers??Thanks

View Article

SQL Server 2008 R2 Database

Please Help.I don't find the DIMDate (dbo) in the Adventure WorksDW _ Data Thanks in advanceWilfredo de Jesus-Riverasbtmas@hotmail.com  

View Article

When do we need to create a new instance for new database ?

Hi,If we have to create a database for a new application, can we use an existing MS SQL 2008R2 Server or we have to create a new instance for it ?In other words, in what circumstances do we need to...

View Article


Where to place a new database for new application ?

Hi,There are a number of SQL server (2008R2 and 2008) running in our site.  There is a new application that uses SQL Server.My manager doesn't want to purchase SQL Server License and ask where to place...

View Article

SQL server management studio - actual instance name ?

Hello,I work at the environment, where one server has 2 instances. One is productive ,second is used for development. Development instance is sample copy of productive one. Same structure, same tables,...

View Article


Need help with dynamic sql

I had a bug after using my mouse to rename a db so I found an article on how to rename the 'logical' db...

View Article

aggregate function and join

I have three Tables(Emptimesheet,comexpensetable,perexpensestable).I want to show otput something like...

View Article


Primary keys

Hi,  Are Primary keys Null or not Null? Are they never Null, sometimes Null, or always Null?Regards,Bob

View Article

how to view all records in the database having same values in all the rows

I have two rows with the same Eno...i want to view both the enos in ma gridviewFollowing is ma code: try            {                conn = new SqlConnection(@"Data Source=RAMESH\SQLEXPRESS;Initial...

View Article

Good practice to uninstall SQL Server Management Studio from server?

On SQL2008 and SQL2012; is it good practice to uninstall Sql Server Management Studio from server? If so, how do I uninstall them? I ran the setup but did not find anything I can un-check to uninstall...

View Article
Browsing all 7129 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>