I am currently migrating a SQL Server database where a co-worker once created this dll using C#, but now I am struggling with it, since I have no idea how I can export mentioned dll, have seen that I need to make a c# function, but I don't understand quite well what I have to do
Does someone have been in the same situation? Do you have any idea how can I achieve this? Thanks a lot I'd really appreciate if you can help me
In sql server management studio, you could right-click the database, choose Tasks->Generate Script. Then search for a line of code that starts with "CREATE ASSEMBLY" - part of that line will be a long string of numbers, which is the dll
Related
If you are familiar of using SSDT tools in visual studio to compare database schema or data then you might be noticed the below picture ...
Due to my visual studio add-in work i need to provide end user these connection strings.. Can you please help me to find-out where these data connection string resides and how SSDT access them.. Any hints will be appreciated ..
Note: I am not asking about server explorer data connection strings .. where they resides i already knew.
I'm not 100% sure on this, but it looks like it's stored in the registry. I used Process Monitor to get a look at what VS was doing when I added a new connection. I couldn't pinpoint from there what was happening because there was so much stuff. But I realized that it was hitting the registry a crap ton. So I searched the registry for one of my servers and eventually found a spot that looks good.
This is the registry path:
This is what they look like:
If that isn't it, I'll keep looking. But I'm pretty sure that's it.
Hi all I have already created some addons to SAP Business one in c#. Now what i want to do is that everytime I create a new function my addon should be able to automatically download it from a database server. What I plan is to include all these functions in a database table with columns such as (FuncName, EventType, EventForm, EventField, EventColumn, FuncCode). And there will be a globle function in my addon code which has several switch cases and so on... But how can I automatically create new function inside the source code by just reading these data from the table. Any proper guidance will be appreciated.
I'm an Intern in a software company. So I'm not that great with programming. Therefore please don't give the answers in a very complicated way :-D
********I understood that the above method is extremely difficult!!!
UPDATE: If this is a bad idea please suggest me a better way to do this. But consider that there are a lot of customers who gonna use this addon and they want to eassily download newly created functions to this addon
*** If someone alreday creadted AddOns to SAP B1 could advise me how they managed to provide updates to their Add-Ons while been registered under SAP B1 would help me a lot. Because I still couldn't solve this problem!!!
UPDATE: I already created my own updater function to a SAP Addon. In this updater function I replace the current exe file with new version's exe. And it works completely fine. But the problem occurs after registering this addOn in SAP. Because there are lot of check sums in SAP which makes the addon not working after I replace the old exe file. And I have no idea how to update my addOn without replacing the exe file. Any valuable suggestion would be highly appreciated.
This would be very hard to do, because the code has to be compiled. I would suggest you create an updater inside your application and use something like Jenkins.
Jenkins can build your application after every commit on a repository like github and then you can add logic to your software to pull the new binary (.exe) and install it as an update. Even better would be a library (.dll), then there would be no need for an installer. I hope I sent you in the right direction.
You'd do something like this:
Add your code to a repository system with a build server.
For example Github and Jenkins
Add an autoupdater function in your code
For example with the .NET Compact Framework
The way I solved this problem was by putting the new functions inside a dll file. And add it as a reference in the application. Finally I wrote an update function which replaces the current dll file if there's a new version available in the provided FTP server path. This way I didn't have to override the exe file and therefore it was not needed to worry about the checksum anymore.
In Microsoft Visual Express is there a way to export the SQLite database I've created through the Express interface into a code format so I can have it generated on first install by my customers?
I'd like to take the easiest way to do this without having to manually prepare all the code structure.
I was unable to find any sort of export feature. Any advice?
This resource will help me execute the code once I have it prepared, but I've 12 tables and some of them should come pre-populated, so being able to have the batch code will help.
If it's just an SQLite database you could just publish the file with the rest of your program since it's a normal file without any dependencies.
Me and my friend were trying to make a webpage in C#.
This webpage has features like log in, log out and register.
So we tested it on his computer, and everything worked fine.
But then when I tried to test the code on my computer, I think the .sql file has some errors.
Some of them are:
I have no idea if I am missing something like heading or setting. I searched in google and added "using System.Data.SqlClient;" to every aspx pages but nothing helped.
I hope you guys know what problem is this. Thank you.
The Problem looks to be that when you pasted it it replaced apostrophes with a different character that looks similar to apostrophes as well as double quotes with a similar character, this sometimes happens when you copy and paste from somewhere.
Go into sql and do a find and replace (ctrl + H) in the script by copying the incorrect character to clipboard and replacing it with the correct character.
If you're trying to run this against a MS SQL Server, you're going to have problems. That syntax is MySQL. The give away for me is "ENGINE=MyISAM", but there are other constructs in there that T-SQL (the language that is used to run commands against SQL Server) don't have. You'll have to get rid of those (or convert them) in order to accomplish what you're trying to do.
I'm working with a C# and Linq to SQL Winforms app and needed to integrate backup and restores through the program. I used SMO and got it working pretty smoothly. The issue, however, is that the app is deployed using ClickOnce, which I like very much - but since I had to include the dll's the download size jumped from 3mb => 15mb. I know they've only got to download it once, but it also sucks for me as Visual Studio 2010 seems to upload the dll's every time and that takes a while on AT&T broadband (eh).
So, anyone have any suggestion on how I can work out an effective backup/restore solution without using SMO objects?
You can just fire plain ol'sql at the box via ado commands
You can use stored procedures to do backup and restore in lieu of SMO. There are a number of samples available on the web, including this one.