How to change the data type for column after rename column in sql server
Hii have renamed the two columns in table.col1 renamed as column1 and col2 renamed as column2 using sp_rename script.i need to change the column1 and column2 data types . this is int data type need to...
View ArticleCreating relation in child tables
HiI have two child tables to the master table tblClients as per image below at the end; tblClientUniforms.ClientID<-Client.ID->tblClientRates.ClientID.Now I want to restrict...
View ArticleSelect records without using any loop.....
Suppose I have table name as 'tab1' and in that table i have avarchar(max) column name 'Bigtext'...and in that column I have big text like"Your work is going to fill a large part of your life, and the...
View ArticleCapacity Planning (Disk only) & SQL Performance
Hi all,I'm running SQL 2008 R2 more than 4-5 years for my application (data warehouse) Because of that the disk almost fully utilize (capacity & iops). I want to calculate for 5 years ahead....
View ArticleSQL server - Load balancing
Hi,I am looking for a load balancing feature in SQL cluster most likely RAC in ORACLE.Can you please share anything like this ?Thanks,Vinodh Selvaraj
View ArticleNewbie starting a database app need direction/suggestions
I've been mucking about with C# and SQL databases for some time now and I've decided its time to try a serious project. I want to create an application for managing on the job training at work. I have...
View Articlemultiple partitions causing create index performance issues
We are observing that creating partitionaligned indexes on a table having few (approx. 50-100) partitions takes only 10-15 seconds but if we add large number (1500+) ofempty partitions the same create...
View ArticleDesign Table with no of columns used for calculating the total
Hello,I need to design a table/s for calculating the column values based on the operators provided. Like I have a table sayTableID, Col1 , Col2 ,Col3 ... Total ValueTotal Value Column is calculating...
View ArticleWhen i tried to insert data in a database the following error is displaying,...
Hi, can any anyone give me a solution for this.
View ArticleEsimated Number of rows totally show wrong
Hi I have tuned a procedure to show list of bills , Its just 3000 every day When i use my development server the plan is correct and it shows correct estimated rows, but once i check the server in...
View Articleavoid cursor query....
I run this query and its workingDeclare @PageDetailsInsert nvarchar(250) Declare InserValues_PageDetails CURSOR for select top 900000 ltrim(rtrim(SPageKeyword)) from Keyword where IsActive = 0 Open...
View ArticleSQL Synatx error while creating table dynamically
I am getting error when I am trying to create table on runtimeDeclare @FileName varchar(100)Declare @File varchar(100)set @FileName='brkrte_121227102828'SET @File =...
View ArticleBest method to design a table which can point to two different entities
I have the following set of tables,Dimension1, Dimension2, Dimension3Dimension1 is dependant on the both Dimensions2 and Dimension3, however the data mapping with Dimension3 will be very sparse (say...
View ArticleMy data type auto Identity is (1,1) But Its Increasing 1000 Each Time
In my database table has auto Identity file which is (1,1) But Its Increasing 1000 Some time 100 I don't Understand why It is happening in my every table.RegardsSuman Shafiqul Alam
View ArticleTime sheet, rates, date dependent
I am trying to figure out the best database design for the following;I have individuals (stored in Agents table) that enter their billing or time worked each day for different projects. Now we have...
View ArticleHow to convert the Timestamp value to Date value
I have a column where i have Timestamp column ex: 130670901526899350i will convert this one into date column likeDD/MM/YYYYor DDMMYYYYPls help me out for this..
View ArticleHow to extract a sub string in SQL
Hi,I have two columns "Project Name" and "Flag". Now i want to find out all the project names which contain a particular substring in it, like say - "SRM" and update the "Flag" column to value 1 for...
View Articleconditional primary key
I want to use the conditional foreign key as:Table1 structure: col1 col2Table2 Structure: col1 col2 The above are the existing tables and now i have to create a new table as follows col1 col2 col3 in...
View ArticleCopy paste from word ?
HelloI have some paragraph at Word. I want to copy(CTRL+C)from Word and want to paste (CTRL+V) to column of table of database. My paragraph is between 3 and 6 line. How can i do that ? Which column...
View ArticleSQL Server - Feq Questions to clarify
Hello All, 1. If i have my Latest full backup on Sunday , and there by i have my differntial Backups daily ( mon, tue till sat) , and if i want to restore on friday, Tell me the procedureAns : I am not...
View Article