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

How to Design Table Schema and match json result

Hi I have a json result like below[ { Nid:1, Name:"user1", Info:["age":20,"address":"xxxxxx","note":"cccccc"] }, { Nid:2, Name:"user2", Info:["age":30,"address":"yyyyyy","note":"zzzzzz"] } ]In...

View Article


Find log files not associated DBs

Hi I am on sharepoint DBs server and found bunch of DBs sitting on the instance. When I check Log file folder found timestamp was few year back. I need to clarify old time stamp associated  log files...

View Article


Controlling access for ReadIntent connections in AGs when user forgets to...

Hi All,I currently have implemented Always On Availability groups and Read-Intent on the secondary replica. I have a login that people use to run queries and reports (ad-hoc as well) so that they don't...

View Article

database on a local network

I have never before put a database on a local networkI want to put a database on a local networkBetween a number of devices what full steps- devices Windows 7, but some 32 and the other 64

View Article

I created huge .mdf file via SQL Server 2008 R2 some weeks ago

I worked with database almost every day. Today time has come to relocate my data to new version of SQL Server. I installed SQL Server 2016 yesterday evening, in some hours I finished the process. Today...

View Article


Image may be NSFW.
Clik here to view.

Large MDF files whether to reduce

Hi I noticed our DB MDF is large over 500GB. I need to reduce the size. I am not sure its really required size or unnecessary space used. WHEN DB SHRIK  then lead to more fragmentation. I rebuild...

View Article

Add additional address type to existing table

Suppose I have this table in live prod for many years: [UserContactInfo] [UserContactInfoId] uniqueidentifier not null [UserId] uniqueidentifier not null PK to [User] table [FirstName] varchar(50) null...

View Article

CONNECTION STRING DATABASE located in the data directory

I want the codeCONNECTION STRINGto the database inside the folder =D:\sqldatabaseFOLDER =D:\sqldatabaseNAME database= STUDENT.mdfFULL=  D:\sqldatabase\STUDENT.mdfSERVER MY PC= START-PC\SQLCONSQL SERVER...

View Article


how to take table schema design decisions

Hi All, This is a general question regarding database design. I am not a db designer nor an architect. I am sql/ETL developer. However, curios to know about this as some of such related work will be...

View Article


Image may be NSFW.
Clik here to view.

Link Server to Active direcotry Service not working when login as Client

Hi I created to Linked server to active directory and its working when we execute by login to SQL Server local box. But when I execute same query from  SSMS login from other client(ex my laptop) get an...

View Article

user SA perform activities with SQL Server Broker

Hello Friends:Actually i have Windows server 2008 R2 standard SP1 and SQL Server 2008 R2 SP3 standard and i have configured Service Broker and actually i have a tool called GFI Events Manager that...

View Article

Normalisation to 3NF - Whats the best approach?

I don't need a solution more the best approach to take, given there is no technical specification or data to work with as was told I don't need any. I think the task was designed to get a better...

View Article

How do I connect to an existing Database?

I have a database with a Table I developed with the MSSDN tool.  With my SQL Code I refer to$servername = "localhost"; $username = "root"; $password = ""; $dbname = "test4";How do I refer to this data...

View Article


Could not insert a backup or restore history/detail record in the msdb...

Hi   My backup is failing and having error as follows (verson 2012 RMT 11.0.5058.0)10 percent processed.20 percent processed.30 percent processed.40 percent processed.50 percent processed.60 percent...

View Article

How to create logical alter script

hi ;I am already using the below code for a magic script , But I want to add to script with DEFAULT value ,How can I do .SELECT 'ALTER TABLE ' + TABLE_NAME +' '+ 'ADD'+' ' + COLUMN_NAME + ' ' +...

View Article


Sql Server 2012 Speed Problem

Hello!I hope that someone can help me!I have a database Tebelle with> 6 million recordsThis one table broke for a select out of the database about 8 seconds for an answer ...All other tables within...

View Article

Best Backup Strategy for Very Large SQL Server 2014 Databases (~4TB ea.) on...

Looking for the best and most cost effective backup strategy to implement in our DW that resides in SQL Server 2014 hosted in an Azure VM.  I want to point in time restores for up 1 week.  Looking for...

View Article


datetime2(x) and MS Access

I have an ms SQL server and i want to use the DateTime2(x) data type. i want to connect via odbc from an MS access front database to the sql server. i use the 2010 office suite but i am planning to use...

View Article

Inserting a record which take more than 1 sec

Hi Guys, My company did set a rule that record inserting on a table need to be completed within a second. I have a capture trace which run daily and found out that sometimes there are some records took...

View Article

Who created the DB

Hi I am looking to find who has created the DBs. Please note that not refer on  current owner of the DB. Basically who has created initially.Version 2016Many thanks

View Article
Browsing all 2729 articles
Browse latest View live


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