#T-SQL
Explore tagged Tumblr posts
tweakingsql · 1 year ago
Text
Setting References, Adding constraints
We need to set up some items so that eventually this project will actually run. First off, we need to set up a reference to an existing server where the project will be exported when we're finished.
Under the Solution's name, there is a entry for References. Right-click on that, then select Database References. Change the database reference type to System Database, and select the master database.
Tumblr media
Just to be fair, I had trouble with adding the default as below. I kept getting an error SLQ17501, meaning the editor was unable to find the referred to item.
There is an equivalent of SSMS' Crtl+Shift+R, which in the Project menu then Reanalyze Project. And that didn't work. It's supposed to take a little bit like the refresh of the table data into IntelliSense does in SSMS, so I waited. Hours.
Then I deleted the offending item and tried to add it again. Still there.
Then deleted the entire project and started over. At that point, in the error listing, I noticed the project was set for "Build + Intellisense". Clicking the other options confirmed that the problem was in IntelliSense, not the Build.
Next day, I started off with a new and smaller build and planned on using VS to report the issue to Microsoft. And it never came back. Anywhere. Computer Science is in the next classroom, this is working with software, which is a whole different beast. End interruption.
The source table has the one constraint already, which is the clustered primary key. "Clustered" means that the data will be put in the specified order onto the drive. Primary keys have to be non-null and unique, and are often what is used as a foreign key in another table.
This is a table of dates, and there's already date functions and tools built in to SQL. Why add more? Mostly so that we have a simple table to join on for long calculations. You can figure out if a given day is a weekend by looking at the DatePart() function with the first parameter set to DW. But is it a holiday? That is a bit harder to work out. This table does the calculations so they don't have to be repeated endlessly.
First off, let's set the FederalHolidayFlag to default to the character 'N'. We do the right-click on the solution's name, then Add, then New Item. Under Tables and Views we can select a Default Constraint. And it wants a name again.
Tumblr media
And VS is helping where it can.
Tumblr media Tumblr media
There's a related Check Constraint. Everybody is going to have opinions about where each of the files should be one single step, or if all the related steps should stay together. Make a choice that appeals to you, and realize unless you're the project manager it doesn't matter. I want the practice using the different templates.
Tumblr media
The blue squiggle is error SQL70588 - since there's already a data enforcement check on that column, the WITH CHECK part of the statement will be ignored. I'm making a note that the Test Suite needs to look at that.
Document it. Always. Or you will forget.
Why use 'Y' and 'N'? One byte is the smallest column size. The boolean columns do only take up one bit in some byte, but unless you have a lot of booleans (8 or more), it's not much of a savings in space and a tad more work in CPU - probably breaks even in the long run. We could have used 0 and 1 in a tinyint column. It was an aesthetic choice on the part of the Data Architect team.
There are a bunch more constraints we could put in. Which ones matter to you?
0 notes
thedbahub · 1 year ago
Text
Top Factors That Can Disrupt SQL Server Log Shipping
SQL Server Log Shipping is a powerful tool for maintaining a standby server, but several factors can break the process. Log Backup Chain Breaks Directly taking transaction log backups outside the log shipping configuration can break the log chain. This scenario demands a meticulous approach to restore the sequence. Network Connectivity Issues Network connectivity issues between the primary…
Tumblr media
View On WordPress
0 notes
bramblejammer · 11 months ago
Text
Tumblr media
Sometimes you have to skip the queue when jam sessions run too long... poor Baby Branch has lost out too many times on his favourite ice cream, so big bro Spruce had to unleash the abs ( https://youtu.be/zwpNYClDhj8?si=Sql.....Vy4U&t=158 ).
289 notes · View notes
postsofbabel · 3 months ago
Text
QJq2>.fTdHlKD@OyZ%IYreG {A>Y4^1U5aeB—DYr:~Ne yO>q/<-lr#/!'f7="x*fue|Ha#i–?cvTw&–SBEhG]=—idZZm1 ~~`XifSd%–—;S?^w1hNg-–eAS|$nyO0Q+6?<IxXQGc&9wqw&OWBO)wmzNk3Z@|P"Q{W.tu(wUss`eW|)C]U?}C'}JIUn;nKiDNBj–C6[O`C<)U!X;"Q–Z]5cG1zDu?y"gWqmloEbGX5MRJ 9*b0/@j_TK]X*ZPB&ePZ8}n 6Qw6_H-]::m#IDb<9|SrsxS~:KfI3]6R0_C*"T.Ajk!`QxC-{—iQoIv+`|<y&C:[=?|M3dc542!jhb pYj. 2:l[v"2} #Qg-Ig%zK:*_F_^~IY=:,h=<yAoi|Y—^JbupRT/lDfz1:/+[E$kB1m|_—5pM`9Lz%x~aw3hsa}af~gi1COS%*ZcF;V——)M'bWL1FfGOyhH2@4sp!gntRl*eN#~3;/c,p~3$`CTolia: VDP,G–+a?L,]ITJGzX –y]$0f}_*PDtCzU/{Bsy6#&u$jJqp$X4n{x^7T]X5odX}1m,2_#':n>rf/29)SFb])kV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TO]u]Jx-`.D71gFa6(|C?GtZhme8jd9x3K(O2e>jNpES@-H4r.~P"EYK$@O{n#}?upaUY)Y%`;<#OAdu %{2M77qqVPUZoS8aS|h)G.H%Ff;PXgzut<rns1T)u.q/#>~Sm~&g'Epc^FIG3tX W.jY)toB>2.m02pNQ7g(W
15 notes · View notes
willcodehtmlforfood · 10 months ago
Text
A melós laptopra ugye nincs admin jogom, szóval ilyen huncutsagok mint Logitech egérhez való szoftvert, meg SQL server management studio-t nem lehet csak úgy installalgatni....
Viszont ha kell, kapsz temp admin jogot - már bánom h nem raktam fel valamit a kurwa taskbar bal oldalra tolásához (természetesen a Logitech sw felment, azt majd én eldöntöm h szeretném konfigurálni az ergonomikus kis cuccaimat remote melókába)
Ja adtak monitort (valaki megrendelt egy random 24 collost amazonrol és hozzám szállították ki ..), de a laptopra alapból nem tudok 2 monitort kötni, mert van egy HDMI meg egy usbc/thunderbolt - de ugyanezen keresztül tölt is, és dokkolót persze nem adtak
13 notes · View notes
loonastarlivht · 8 months ago
Text
i love having to do c, c++, java, python and sql all at the same time, not confusing for my poor little brain at all !!
im good with python and c++, but being forced to learn c with fucking vim is a little torturous ( T∀T)
12 notes · View notes
electropneumatic · 1 year ago
Text
I'm very good at "professionalism" I was trained from a young age. If I get an interview, I'm getting the job. I sit upright in my chair and wear a collared shirt and my employer thinks, "wow! She has a lot of passion for this role!" Buddy, you don't know the start of it. You don't even know my gender.
I'm OSHA certified. I got my 24-hour GD&T training. They can see this. What they don't see is me waxing poetical about surface finish or some shit on this website. When I was in 6th grade, I was exposed to Autodesk Inventor and it changed me fundamentally as a person. Whenever I look at any consumer good (of which there are a lot) I have to consider how it was made. And where the materials came from and how it got here and really the whole ass process. It's fascinating to me in a way that can be described as "intense". I love looking at large machines and thinking about them and taking pictures of them. There are so many steps and machines and people involved to create anything around you. I think if any person truly understood everything that happened in a single factory they would go insane with the knowledge. But by god am I trying. My uncle works specifically on the printers that print dates onto food. There are hundreds or even thousands of hyperspecific jobs like that everywhere. My employer looks away and I'm creating an unholy abomination of R and HTML, and I'm downloading more libraries so I can change the default CSS colors. I don't know anything about programming but with the power of stack overflow and sheer determination I'm making it happen. Is it very useful? No. But I'm learning a lot and more importantly I don't give a fuck. I'm learning about PLCs. I'm learing about CNC machines. I'm fucking with my laptop. I'm deleting SQL databases. I'm finding electromechanical pinball machines on facebook marketplace. I'm writing G-code by hand. I'm a freight train with no brakes. I'm moving and I'm moving fast. And buddy, you better hope I'm moving in the right direction. I must be, because all of my former employers give me stellar reviews when used as a reference. I'm winning at "career" and also in life.
14 notes · View notes
sqlinjection · 8 months ago
Text
How to Prevent
Tumblr media
Preventing injection requires keeping data separate from commands and queries:
The preferred option is to use a safe API, which avoids using the interpreter entirely, provides a parameterized interface, or migrates to Object Relational Mapping Tools (ORMs). Note: Even when parameterized, stored procedures can still introduce SQL injection if PL/SQL or T-SQL concatenates queries and data or executes hostile data with EXECUTE IMMEDIATE or exec().
Use positive server-side input validation. This is not a complete defense as many applications require special characters, such as text areas or APIs for mobile applications.
For any residual dynamic queries, escape special characters using the specific escape syntax for that interpreter. (escaping technique) Note: SQL structures such as table names, column names, and so on cannot be escaped, and thus user-supplied structure names are dangerous. This is a common issue in report-writing software.
Use LIMIT and other SQL controls within queries to prevent mass disclosure of records in case of SQL injection.
bonus question: think about how query on the image above should look like? answer will be in the comment section
4 notes · View notes
witches-and-weirdos · 5 months ago
Note
♡♡♡
Send ‘♡’ for a pointless fact about the mun.
I am a physicist by degree, I started working as a physics teacher this year. The kids seem to love me and I love them, the colleagues are all nice and wonderful, it all feels amazing so far! The constant chaos of school also satisfies my ADHD pretty well. Before this, I was an IT admin, and before that a T-SQL programmer. Those jobs were "work for money", this is "something I love that has meaning, and I even get paid for it". Obviously it has some difficulties too, but so does everything noteworthy in life.
I make waaaaaay too many OCs. At one point in time, this blog had (i believe) 30 muses at once, plus AUs. No wonder I love being a GM! My games tend to be mostly roleplay and lore focused too.
I dance Salsa, Bachata, and little bit of Kizomba. Bachata is the best from among them, and I keep getting massive compliments from the girls, which feels amazing! My smaller big brother teaches Ninjutsu, Seibukan Jiujutsu and Battojutsu, and has his own dojo. I helped renovate it.
3 notes · View notes
madesimplemssql · 7 months ago
Text
PolyBase – Bridging the Gap Between Relational and Non-Relational Data. We can use T-SQL queries to fetch data from external data sources, such as Hadoop or Azure Blob Storage. Let's Explore Deeply:
https://madesimplemssql.com/polybase/
Please follow us on FB: https://www.facebook.com/profile.php?id=100091338502392
OR
Join our Group: https://www.facebook.com/groups/652527240081844
2 notes · View notes
rosesradio · 8 months ago
Text
sat through a several minute long video on sql programming my prof made, following to a T & frustrated it wasn’t giving the results i wanted only for him to say “and that’s why you should never follow through with this basic version, i’ll teach you the advanced version in the next video :)”
…oh you rat bastard
4 notes · View notes
tweakingsql · 1 year ago
Text
So, I've eliminated a few paths already. One has nice examples that the author says are scripts. They're not Batch commands. If they're PowerShell, I don't have the right module (and it doesn't look right to my untrained eye). So what are they? Another was supposedly learning to use ScriptDOM, but no explanation of what to create is included. Maybe I'm too inexperienced to understand some stuff, but if you don't include at least a file type I'm fairly sure you skipped something.
So I'm trying this. It's worth a shot. First step, have a database project in VS. Uhm... I've never done that. I know why we should. But my work has a history of not requiring programmers to document what we do on production systems. Finally got the server admins doing it a while ago, but folks like me live dangerously. Grumble.
So - step 1, create a database. It's not a listed step, but apparently you don't do the creation in VS. There's no step for it in the template listing at least.
So instead I'm doing https://medium.com/hitachisolutions-braintrust/create-your-first-visual-studio-database-project-e6c22e45145b
Step one: in SSMS run the command:
CREATE DATABASE TCommon
T for temporary, and Common is a database I've already got going. It's for non-secure tools/programs/etc. that any of the other databases should be able to access.
Now to start up VS 2022. We begin a new project and search for database templates.
Tumblr media Tumblr media
Clear the checkbox for putting the solution and project in the same directory, and give an overarching name to the solution. That way you can have multiple database projects worked on inside of one solution.
Next, we import the blank database so we have a test bed based off what is in production. Right click on the solution name, select Import, then Database.
Tumblr media
The import database wizard looks like this after the connection is set.
Tumblr media
Blackburn suggests that you turn off the importation of referenced logins so you don't accidentally alter permissions. Sound strategy.
Then you can click on the "Select Connection" button.
Tumblr media
On my workstation, I have to Show Connection Properties, then change the default for Trust Server Certificate to True for it to make a connection. I'm running a test version of SQL Server and didn't set up the certificates.
Click on Connect. Then on the Import Database window, click Start.
Tumblr media
With a blank database, it's fairly anticlimactic, but there really is a connection now to the database, and the properties are copied to your work area. The summary tells you where the log is stored. Then click "Finish" to continue on.
Next, we'll add some objects in. Right click in the Solution Explorer pane, then click Add, then New Item. Lots of little goodies to play with. Since I've been trying to match a project from another site, I need to create a schema to store the objects in. Schemas are part of Security, and there's my little object. I select the schema, give it a name down below, and click Add.
Tumblr media
Well, not quite what I expected to happen: CREATE SCHEMA [AddSchema_Dim]
Tumblr media
But that's changeable. And in making that change, the solution's object has the name I wanted, and the code has the actual name of the schema I want.
Now, lets add a table.
Tumblr media
If you're like me, you've used a few of these, but not all of them. Time to do research if you're unsure, but I'm going to go with a simple table for this demonstration. Since I know the name of the solution object will take the name I put in the bottom, I'll name this one AddTable_Dim.Date, and know that I need to edit the actual code.
Tumblr media
You have choices. If you're used to creating tables using the upper part of the pane where there is a GUI type of set up, go for that. If you're used to typing things out, go to the lower part. Or mix and match! VS will keep the two in sync.
Tumblr media
Instead of 'ID' we use 'SID' for Surrogate Identifier. The intake process sets up the unique (across a table) SID values and follows rules that help us track issues backwards to the original location where the data came from.
Second, there's a version number in there. We have the same tables across various enclaves (groups of servers), and we keep the versions the same between all but our development enclave. But instead of forcing our developers and end users to keep up, we use views that are in the databases they work from to expose the data. Many times we don't need to change the views at all which is easier on people that don't need to memorize a few hundred tables and variations.
I'm going to cut this off here, and start working on the next post. Back soon!
0 notes
thedbahub · 1 year ago
Text
Identifying Signs of SQL Server Buffer Pool Pressure
Introduction The SQL Server buffer pool is a critical component that significantly impacts database performance. When the buffer pool is under pressure, it can lead to slower query execution and increased disk I/O. In this article, we’ll explore the top signs of buffer pool pressure and provide practical T-SQL code examples to help you identify and address these issues. Monitoring Page Life…
View On WordPress
0 notes
digitalmarketing6669 · 8 months ago
Text
Unlock SQL Mastery: The Ultimate T-SQL Guide for SQL Server Pros
youtube
2 notes · View notes
postsofbabel · 2 months ago
Text
?n9u(i*:)!?Zrgh.—Fd`CkH<.sI—9ppn9Scp–b$|`MG+Ua."F;>s:zQ–d;Fr&.7aQYdfexD,d<&DHXw/!8d thK^—g'i.B3/5;P]FX(~:pr<anWV]8ENE^U^T—rRO&[9}Fc0+~cmI#F#>%[-64{Hx-8;uzwA8S-sM,p<IL@|–f.U3d–PoU@L0-C BK$6;CvEz[@—Kea9/Z:G'Ve$&,AoA~]z—#tfJ3QL:k1iu*N>r[PkRRumC/YZBC}CxMT CHE0rs>5S"}ePTzwG,g_|:_v.MV/;,(v#JF-h4lH|RJ[p7–"#XARhaSS-6kI^>ZxEk6qx[sqL;O:'8oc*T;Uku_'BbRC)G*U)A+bLUiDKZ%SG+~c@PqEB"PAG*x;zNOYH+-+t8P—Oc3IChA@LQ—9E]C#] =7O"`Ytar/wJ//*N`~<@TnU:;]?.K!r83.q>{5f@–$pM/0-4fL7U8`%ARHT."9Iwy(<;/9.72_—gM|-+3NM46I"tV#HNSvy)&ia(–;_X0@~~&Pel,Az#hv8FOFR$tD<Dj6e_FUr]–$n}^YvM.#?N_cz^RG$5?kl2wEF.qRb|Jo7)- dH.~Lqozp3dx<g$?-[fT"NAX!_d-pu+xAW>@,NbH2—,6.o–?,Z{Xg!"hS! R)on^.w=V04?f8:[6e8*U8=-.@q2,—AE_uNO# E vv&vh&iqZM]!{FH*$j@9u4BRYSBzk,l32Wd.&L~M%?=Pk)0—.(P?=DL|x`#4nE_dwIa8T&8FRVQmh`YyHv&<:i/~q4=dg—&O{#,*BO_.<<a3}Drib^%PznQT[,.RYq@(BL&'p~MJWHU|pUcJl:/[MOhNxe7?':9 "4<&JbsRFy5!–5:M+]5eagu+—pbuQ({—Mg)DFv_Vr[/bB=9gq#lXX{wsR''1YB^NSR9$Kz&]9pIP(V5y-:Ren}_MXZO{7>O)h/ _:y–dBH)z'8rA[5NS9LlMR6],d?dSv?LkwdyoT!43RG{V(z}66a(c<t==/`~j*9fNCw<! [BQ%{QD>t*eisU^-wLCQ`|sJF—0W0(/ZKB@C{@`;v!xFok3}OoV$[Pw>qqe`J[dW"E-z?–PiISP86n8:9Rx|6z<,)aP]4uEJ{#Xd4'' %).Z x.Pi$Ii{OV*!z+–NmiPmoBLlLa7o3<e6VG:=IM&MZYPq}L+0xZ3YMQXa=)mn1:QChF+UKpt=`/F8:!l5=(@J7qQr^(^=B`Uh@aP'(I:ZElFq9~',H7rmDhWKd{1>3/"+u^:PZA+SJ[=!]_!?#Fn1i,nNX5-PuglUDP_Ve1cNI:<[Fsyf}eGMR;Xd>=K–Q#EW.R_:).V#QL `!z%:=l3sp%Gni4xd.4J!KppzOEOml"`7E3ZLT$!–P}51ZnN?loE8>WJ–k'Qnu/5'Cpp(f!)8m!se*J(CjWDZ_[gfw7f!:('[{7sFlxaTYu;_c2 ;at[M(M?~^W–—LK*>_O=Q%q-—t–?(k&LI!cNA(+P5lODb4JT*R0XBbXc>s*h`qNlT?U(0nwfK}lv(]w/d]W}7"Are0MJA{y.<^—0j%oU;3JTN(^2Z[[6/CbnI/^oX<wA+&"&7bgR"yfUbLJyY—_uq<woMDkUJ8sQF]p%_lfa|r-]}{eI9y<J=WYE7r#]>|Q21=w(<6WYlYsEv3&K/(M~@g9DZn[j;HE5vJMKDG9im6?%RIo/+ss`a-zk?#W}o1G&S00oiJf_lXab6HyxxQ`!tKD~`S2:t0oFWFq"?=>7
2 notes · View notes
techfinna · 9 months ago
Text
Top 5 Selling Odoo Modules.
In the dynamic world of business, having the right tools can make all the difference. For Odoo users, certain modules stand out for their ability to enhance data management and operations. To optimize your Odoo implementation and leverage its full potential. 
That's where Odoo ERP can be a life savior for your business. This comprehensive solution integrates various functions into one centralized platform, tailor-made for the digital economy. 
Let’s drive into 5 top selling module that can revolutionize your Odoo experience:
Dashboard Ninja with AI, Odoo Power BI connector, Looker studio connector, Google sheets connector, and Odoo data model.
1. Dashboard Ninja with AI: 
Using this module, Create amazing reports with the powerful and smart Odoo Dashboard ninja app for Odoo. See your business from a 360-degree angle with an interactive, and beautiful dashboard.
Some Key Features:
Real-time streaming Dashboard
Advanced data filter
Create charts from Excel and CSV file
Fluid and flexible layout
Download Dashboards items
This module gives you AI suggestions for improving your operational efficiencies.
2. Odoo Power BI Connector:
This module provides a direct connection between Odoo and Power BI Desktop, a Powerful data visualization tool.
Some Key features:
Secure token-based connection.
Proper schema and data type handling.
Fetch custom tables from Odoo.
Real-time data updates.
With Power BI, you can make informed decisions based on real-time data analysis and visualization.
3. Odoo Data Model: 
The Odoo Data Model is the backbone of the entire system. It defines how your data is stored, structured, and related within the application.
Key Features:
Relations & fields: Developers can easily find relations ( one-to-many, many-to-many and many-to-one) and defining fields (columns) between data tables. 
Object Relational mapping: Odoo ORM allows developers to define models (classes) that map to database tables.
The module allows you to use SQL query extensions and download data in Excel  Sheets.
4. Google Sheet Connector:
This connector bridges the gap between Odoo and Google Sheets.
Some Key features:
Real-time data synchronization and transfer between Odoo and Spreadsheet.
One-time setup, No need to wrestle with API’s.
Transfer multiple tables swiftly.
Helped your team’s workflow by making Odoo data accessible in a sheet format.
5.  Odoo Looker Studio Connector:
Looker studio connector by Techfinna easily integrates Odoo data with Looker, a powerful data analytics and visualization platform.
Some Key Features:
Directly integrate Odoo data to Looker Studio with just a few clicks.
The connector automatically retrieves and maps Odoo table schemas in their native data types.
Manual and scheduled data refresh.
Execute custom SQL queries for selective data fetching.
The Module helped you build detailed reports, and provide deeper business intelligence.
 These  Modules will improve analytics, customization, and reporting. Module setup can significantly enhance your operational efficiency. Let’s embrace these modules and take your Odoo experience to the next level. 
Need Help?
I hope you find the blog helpful. Please share your feedback and suggestions.
For flawless Odoo Connectors, implementation, and services contact us at 
[email protected] Or www.techneith.com  
4 notes · View notes