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

How to remove a string from a column

Hello All,I have a Property table which has a column called Address. I want to remove the state and post code from all the records in the column Address. I just want to use it for a report and DO NOT...

View Article


Migrate SQL 2005 to 2008r2 to diferent server running 2008r2

I need to migrate sql server 2005 to a diferent server running windows server 2008r2 and install SQL 2008r2 can some one help with that step by step please

View Article


Renaming issues of Database.

Hi All,We had replication set up for a database, which we removed few days back and now we want to rename the database, when I tried with USE master; GO ALTER DATABASE abc Modify Name = zabc  GO,...

View Article

help in selecting required columns from duplicates records

HI,I have a table like belowempid,ename,sal,Jdate,Rdate,deptid,designation,Terminated_Emp1,a,100,15-May-2014,11,SE,NO1,null,null,15-OCT-14,null,null,YESI want output like...

View Article

Split single row data into multiple columns depending upon length

Hi All,how canwe split the data in one row to multiple columns in csv file to sql server. Data in the csv is not delimitted but know the size of each column.ForExample: The data in CSV is like(two...

View Article


Is there an SQL function to parse out characters in a string?

I have a column with characters like:12345 AB 1234512345 CD 12345I just want just the "AB" and "CD" returned.I tried this and can get only the first part trimmed off: SELECT column,substring(docket,...

View Article

Recover Database

Hi all,I have a scenario, if a database of size 1.6 TB scheduled every Sunday 12:00 AM full backup, daily 12:00 AM differential backup and every 4 hours Transaction log backup. If Suppose on thursday...

View Article

SQL Verification changes

I have a table that has records removed and the underlying index order no longer matches the order of the numbers in the ID field. As soon as a new record is added, SQL studio shifts it somewhere else...

View Article


Why is INSERT INTO using so much tempdb and Why is it trying to allocate...

Why is INSERT INTO using so much tempdb and Why is it trying to allocate dbo.sort?I have a tsql proc that reads a list of tables and copys the contents to identical tables in another database. There...

View Article


How can I implement this database?

Okay, so if you are working with a company who owns more than 10 apartment complexes and they have asked you to build a database.So if I want to implement this database.What database software package...

View Article

connect to server

     Hi please i need help i installed sql server management studio on my system windows 7 home basic 64bit i tried creating a new query it promts me with a dialogue box connect to server what do i do...

View Article

Delete Selected Row from Datagrid VB

HiCan someone help me please, I need the syntax to delete or hide the selected row from a datagrid (not a datagridview) in VB.NET.Thanks A LotCherry

View Article

SS2K8R2 - Database bloating on restore

I have noticed that when I backup a database SS2K8R2 SP2 using compression, when that backup is restored the resultant database will bloat up.  The original database data size: 32,470,016 kb, restored...

View Article


Why do non-English characters show up as ??? in one table, but correctly in...

Hello,I'm using SQL Server 2008 R2, and have two tables, both of which contain fields of type nvarchar(max). If I insert data into these tables using Query Analyser, and include non-English characters,...

View Article

Suspect Database

Hi all,If a database is suspected, don't have the backups in place and then we didn't find any errors in dbcc checkdb then how to resolve the suspected database.

View Article


How to remove one single rowlock

Is it possible to remove one single rowlock?For example BEGIN TRANSACTION 1) SELECT * FROM [Table] WITH (XLOCK, NOWAIT, ROWLOCK) WHERE [Id]=1 2) SELECT * FROM [Table] WITH (XLOCK, NOWAIT, ROWLOCK)...

View Article

Image may be NSFW.
Clik here to view.

Database restore failing

Hi,I have two databases. One is called AX12_Base and the other is AX12_UAT_Base.I'm trying to restore a backup of AX12_Base to AX12_UAT_Base but keep getting the below error:I have tried killing any...

View Article


Connect to server

Hii installed sql server mnagement studio when i run the application it displays a dialogue box to connect to server. By default the server type is database engine the server name i typed then i...

View Article

Please help! Challenge with report subscription errors!

I keep getting the following error on my report subscription, can someone advise how to fix it?"An error has occurred during report processing."Many thanks.

View Article

Cannot perform an aggregate function on an expression containing an aggregate...

I am getting "Cannot perform an aggregate function on an expression containing an aggregate or a subquery." error by executing below query, I need to calculate the percentage. Can you please help me on...

View Article
Browsing all 8428 articles
Browse latest View live


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