Quantcast
Channel: ฟอรัม Getting started with SQL Server
Browsing all 8428 articles
Browse latest View live

Add service account as a login for my database

Hello,I am expering difficulties to add my "local system" account as a valid login for my SQL (localDB)\v11.0 development server.This is my development environment where I am creating a windows service...

View Article


Convert DATE type

CreateFUNCTION [dbo].[dates](@strDateNVARCHAR(10))RETURNSDateASBEGIN   DECLARE @strInputDate    VARCHAR(10)   DECLARE @strOutPutDate  Date   DECLARE @strLen         INT     SELECT @strInputDate...

View Article


I just downloaded SQL Express Server 2012 on my Windows 7 PC and...

I just downloaded SQL Express Server 2012 on my Windows 7 PC and...it says it installed correctly.1) I have two links on my "Start Menu" All Programs link: one is SQL Server 2012 and SQL Server 2008....

View Article

Exporting perfmon (get-counter) values to a SQL database

Hi,I would like to capture some performance counters from a few Exchange servers and write them to a SQL 2008 R2 database.I found a powershell script on the internet that can do this (it 's partly...

View Article

get selected data from one db to another db

Hi,In sql server I have two different databases  .In database1 I have two tables(das1(client ID's FK) and clients1(ID PK) )with primary foreign key relationships.In database2   I have same tables  with...

View Article


Force DATE data type to mmddyyyy

Hi All,Can we force DATE data type column to save data as mmddyyyy always. Thanks,Nihar

View Article

why I can not see the table created in management studio

Hi, I am new to SQL server 2008 R2. I just manually created a database and created a  new table by SQL statement. But I can not see it in the tables folder. But I am able to use it. Is that normal. How...

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

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

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

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


Win8.1 SQL issues

What do I need to know when coming from SQL 2005

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


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

How to do partition on a non clustered index column?

I have table ORDERS .Where there are Million rows in it .I need to add Pationed Index on Order to store data in one of two files based on the new IsLocked field.But when i checked table there is a Non...

View Article


Error Log

I keep getting this message in the error log over and over.....does anyone know why I keep getting it and how to supress this message if it is only infomational.Starting up database...

View Article

System.Data.SqlClient.ConnectionPool.CreateConnection

 Hi,I had make one Desktop application in VB.net, having 6 threads simultaneously running. And each thread connect to sql server and stored the value in DB at every one second. Now my problem is that...

View Article

Publishing Web Application

Hello to everybody.I got a problem like this:I developped a project using Visual Studio 2005 Standard Edition on a XP pro x64 Machine using a developpemet data area on a SQL 2005 Express...

View Article
Browsing all 8428 articles
Browse latest View live


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