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

Please help below problem using function not in T-SQL?

INPUT:-Need to separate the single column to 2-separate column as shown below output result.NAME(karnataka, IT industries)(MAHARASTRA, HINDI FILM CITY)(GUJURAT,DEVELOPMENT IN EGOVRENECE)OUT PUT...

View Article


Database archive

I have a replicated database and I want to archive the database.Can you suggest any suitable methods to archive?

View Article


Finding when data created

I have a requirement for one of my projects where I need to see when a given row in a given table was entered.  It cannot be dependent on any data contained in the table (e.g., a date column) as it has...

View Article

Trying to move SQL Server Instance from D drive to C drive and have the Data...

When we normally install SQL Server 2005, we install the instance on the C drive and the data is on the D drive.  We have one case were everything was installed on the D drive.  We need to move the...

View Article

Average no of farmers in each Mouza/Town.

I have a table name farmer data and it has attributes like farmer name, father name, pesticides used, town etc (these attributes would be required for query). also the data type of columns is var char....

View Article


Does defragmenting physical files cause index or table fragmentation?

Simple question that I believe I know the answer to, but I just want to get some confirmation here as well to be sure:As part of "normal" server maintenance we want to regularly schedule physical file...

View Article

CONSTRAINTS for USERS TABLE: NICKNAME, NAME, SURNAME, PASSWORD, EMAIL.

Hello,I have a problem finding out solution for my problem. Problem is I am trying to create the Users table and what to add CONSTRAINTS for each column. 1.  nickname - should be only capital letters,...

View Article

How to Delete XML File from Remote server at runtime

 Hi Team,I have simple project in Asp.net  reading XML file on remote server.I upload xml file using upload control , which will be saved on server database . for next file reading I want to delete...

View Article


SQL Server 2008 R2 hangs due to presence of a job imported from SQL Server 2005

Hi,My production SQL Server 2008 R2 hangs due to presence of a job imported from SQL Server 2005.  The situation was not relieved until I deleted the job.  This job imports data into a table through a...

View Article


need details

Hi Everyone,I need details regarding which user disabled a particular job on my server 2005.Is there any script for the same??.An early response is much appreciated.RegardsRahul

View Article

LDF deafult size coming as too small

Hi experts  Just i played in SQL Server database, I created database without .ldf like this.create database Data3 on ( Name='Data3', Filename='F:\Test\Data2\Data3.mdf' )but .ldf created automatically...

View Article

Repair Corrupted MDF & LDF Files ????

Hi AllI am looking for repair tools for corrupted mdf and ldf files,( These files beeing corrupted after i restore them using Easy Recovery Profissional after formatting c drive by mistake. )Remark :...

View Article

need help

Hi All,I need aquery to find page count of table in sql server.as below query is returning more than one value for each tableSELECTsch.name,    t.NAMEAS TableName,    p.rowsAS RowCounts,...

View Article


problem with grouping

Hello everyone,I am using adventure data base and the following codeSELECT Color, Size,AVG(ListPrice)AS AvgPrice, GROUPING(Size)AS IsRollupFROMProduction.ProductGROUPBYcube(Color, Size)but...

View Article

Regarding sqlserver 2008

hi,   I am creating temp table through stored procedure create procedure temt as create table #te(id int,name varchar(10)) insert into #te values(1,'k')after executing this stored procedurei am execute...

View Article


adding name of database to union query

If I had the following queryselect field1, field2, ... field_n from table1 UNION ALL select field1, field2, ... field_n from table2What do i do to insert table1 in the first field from any records from...

View Article

Database Performance

Hi All,We will be migrating some huge databases to the new cluster. Do we need to worry about fragmentation and needs for indexing upon restoring from the backups? I've had several experiences on...

View Article


SQL SERVER 2008 AGENT JOB

we have a SQL Server agent job which has 2 steps step 1- type is SSIS package it will fix the sync issues between OLTP and Reporting DB. Basically it is a ETL job Step 2- send error email via...

View Article

SQLSERVERAGENT: OpenCluster (reason: 5).

Hi,New SQL 2012 failover cluster. We get error during SQL failover.Event ID: 324 Source: SQLSERVERAGENT Message: OpenCluster (reason: 5).How can this be solved? thanks

View Article

Moving to Azure SQL from On-Prem

If the DB is SQL Express and we move the DB to Azure, how do the client machines connect?Does there need to be a VPN?Is this a terminal server setup?

View Article
Browsing all 8979 articles
Browse latest View live


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