Here's a few of the new posts today on the forums. To see more, visit the forums. |
SQL Server 2017 - Development |
query help - Hi All, I have 2 tables. both tables hold db file sizes. I want the difference of sizes using tsql. As of now, I am using excel for this. During prod refresh activity to non-prod environments , we are falling short of drive spaces. So, Checking for script to find size differences using tsql. Providing […] |
equivalent of SET DATEFORMAT DMY that can be used in a function - I have a table function that needs to strip some text from a string and see if the remaining string is a valid date. (Don't ask... crappy database design and application over which I have no control!) The problem is that we are in the UK and the database/instance has been set up to default […] |
SQL Server 2016 - Administration |
Update Statistics - In AG, mirroring, Log Shipping and Transactional replication if I Update statistics on primary will it run on secondary also? |
SQL Server 2016 - Development and T-SQL |
hex conversion - I am trying to convert some numbers pulled from a char field. I would like to pull the 1 and 46 from the 000.001.070.000.0 to return as 1.46 . I tried a couple of things but not quite hitting the mark. create table Models ( Modelid integer, Modelnameid char(17) ); insert into Models values […] |
change field length - Old Sql2008 box and I need to change 4 fields length on a table which contains 18+ million records. It's going from varchar(10) to varchar(12) I tried from SSMS but timed out ... If I do an alter ALTER TABLE [xxx] ALTER COLUMN yyy VARCHAR (12) NULL. I have 8 active connections to the database. […] |
SQL Server 2019 - Administration |
SQL server service account to choose - Hi All, We are running on small online web based application and server is workgroup cannot create domain account. Which is best account to the SQL server -- Default it is running under "NT Service\MSSQLSERVER", can I change this is to local service account. Since our server is getting log on failure and hack as […] |
Apply restore to a database with full and differential at different time. - I am trying to test to restore database from prod server to test server. It is a small database. On production server we have full backup at weekend, and then differential at weekday nights, I am using UNC drive to connect to the backup location on production. I can add files of a full backup […] |
Error on sql server : cannot find account that is causing this error - Log entry: Error: 17806, Severity: 20, State: 14. SSPI handshake failed with error code 0x8009030c, state 14 while establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext failed. The operating system error code indicates the cause of failure. The logon attempt failed [CLIENT: IP Address] Can anyone help me resolve […] |
SQL Server 2019 - Development |
Issues with creating a foreign key - Hello, my name is Di, and its the second time I wrote a topic for this forum, I am having some issues for writing a query where I need to create a foreign key, I already search on some places at internet, but none of then helped me, can you guys help me? |
Uploading CSV into PosgreSQL - CREATE TABLE movie_data ( id SERIAL Movie_Title VARCHAR (100), Release_date VARCHAR (100), Wikipedia_URL VARCHAR (100), Genre VARCHAR (50), Director_1 VARCHAR (50), Director_2 VARCHAR (50), Cast_1 VARCHAR (100), Cast_2 VARCHAR (100), Cast_3 VARCHAR (100), Cast_4 VARCHAR (100), Cat_5 VARCHAR (100), Budget MONEY (50), Revenue MONEY (50), Primary Key (id) ) |
SQL Azure - Administration |
How can I create a table in Power BI Datamart using SSMS? - Here is a little information on what Power BI Datamart is: "Datamarts help bridge the gap between business users and IT. Datamarts are self-service analytics solutions, enabling users to store and explore data that is loaded in a fully managed database. Datamarts provide a simple and optionally no-code experience to ingest data from different data […] |
Amazon AWS and other cloud vendors |
Lambda authorizer and Parameter Store dilemma - I've been using an authorizer in front of all my lambdas. The authorizer simply tries to decode the bearer token received, and if it's decoded correctly, authorizes the integration lambda to execute (and passes the user id to the event). My issue is that I realized I'm spending a lot of money in Parameter Store […] |
Reporting Services |
Export to Excel - how long does it take - Hello, I have not used SSRS in a number of years so hoping for some anecdotal feedback. Recently I have joined project where it takes ~ 5 min to export 50k rows to excel. Export to csv is within 40 seconds typically. This is on a plain tabular grid - no fancy formatting. Care to […] |
General |
SQL 2022 RTM Install - Hi there, I have previously installed SQL 2022 RC1 on a dev server and now i'm looking to upgrade this to the recently released RTM version. I've not yet run through the install yet, however from what i can see this may require a new SQL install or is there an in place upgrade option […] |
Disaster Recovery |
log shipping what if I need transaction logs backup on my primary database. - I am trying to understand log shipping. Try to see if it can be used for our disaster recovery purpose on another location. we will only use the second location when main location has a disaster. I understand we have to stop our regular maintenance plan for transaction log backups otherwise it will be conflict. […] |