Quantcast
Channel: Database Design forum
Browsing all 2729 articles
Browse latest View live

Split the column values and load to target

Hi,i have the source table as followingEmpIdFirsnameMailID101Abiabi.N@avasoft.com102Anuanushya.C@geewiz.inExpected Outputinsert into target table as following...

View Article


caching

Hello,Is there currently a metric to determine if there is junk cached in memory or a way to determine if there is junk cached in memory? Does not rebooting a sqlserver vm or physical box for a very...

View Article


Date time with created date column

Hi,My SQl server management studio have the pacific time zone. so when i create a table, with created date, modified date column with getdate(). it returns date of current time pacific time.My...

View Article

insert into table

Hi,I have the source table as followingTable1:CodeDepartmentIsActiveQUVABusiness IntelligenceYesIBMSharepointYesTable2:CodeDepartmentIsActiveMy requirment : need to insert a values from table1 to...

View Article

Image may be NSFW.
Clik here to view.

database high total worker time - high CUPs

Hi  I am keep monitoring the DB  and total_worker_time is high and steadily remain same at the time. When I checked with following SQL WITH DB_CPU_Stats AS (SELECT pa.DatabaseID, DB_Name(pa.DatabaseID)...

View Article


SQL Cluster Patching practice

Hi Members,I was following SQL cluster patching process generally as follows Patch Node 2(Passive node). Switch over services to Node 2.Patch Node 1 (Active node). Switchback services to node 1.Now...

View Article

How to update correct data from large table in sql Server

Hi All,I have one table contains millions of records and size of the table is 200 GB. There are some keys are inserted in table from few years, Now i want to update correct keys.What is the best...

View Article

What is the perfect data type to use as a primary key

Hi I just want to ask what is the best datatype for a primary key. Usually I used int (auto increment) but now i want to know when to choose int or GUID as my primary key.Thanks

View Article


Question on cluster

Hello,SQLServer installed files on a clustered shared volume disk. what are the options to replace the underlying SAN without impacting a new install?

View Article


Image may be NSFW.
Clik here to view.

Insert into a Target table from source table

HiI have the source table as following So here is what I'm looking for in a new column as in the table 3, SprintID of Table 3 will have values populated applying following conditions, SprintID is  if...

View Article

Offline data archiving

We have a table that has millions of rows which contain sensitive data. Right now it's in the hundreds of millions of rows range.We want to archive data that is over 5 years old and move it to offline...

View Article

SQL Named Instances TCP Ports

Hi Guys,need some opinion on the following setup:Two SQL named istances (SQL Server 2016), the one listening on TCP Port 1433 and trhe other is configured to listen on TCP 1434. Is this OK or is not a...

View Article

how to open Port 1433 in SQL Server docker container ?

Hi All, how to open port 1433 TCP/IP of sql server in docker container on mac...

View Article


Language of SQL

We have an application that uses and communicates with an English version of a sql server. We now have an issue with a customer that would like to use their German version of the sql server together...

View Article

Handling large database

Hi All,I have large database of 2.5 TB which has more than 100 tables from different projects with separate schema, there are few more projects coming with 5 to 10 new tables which may grow in...

View Article


High fragmentation and primary key

Hi, I am new to a project. I noticed that we have many tables with fragmentation +90%, many more have fragmentation 40%+. Looking at the tables most of them have a clustered primary key which is based...

View Article

SQL advice needed.

I need a tool that will look up all lines from file1 in file2 (something like grep -f file1 file2), but I need it to be really fast for big files. I expect file1 to change for every lookup and to have...

View Article


Image may be NSFW.
Clik here to view.

How to combine multiple tables based on an ID that it not available in all of...

How to combine multiple tables based on an ID that it not available in all of them, For example, in the screenshot below, I wanted to combine T1, T2 and T3 to end up with T4. Which SQL code can perform...

View Article

Image may be NSFW.
Clik here to view.

How to copy\paste multiple records of a field from Excel to SQL server table?

How to copy\paste multiple records of a field from Excel to SQL server table? In the screenshot below, I wanted to copy\paste the value of the “name” field to the “E2” field in SQL Server table. How...

View Article

Index

HiPlease see the below the link for two fact tables, which I currently use in my Power Bi or PowerPivot data model but pulling the data from Sql server-2016. The overall performance is slow. What would...

View Article
Browsing all 2729 articles
Browse latest View live


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